update: payment icon

This commit is contained in:
tokumeikoi 2021-12-13 14:24:53 +08:00
parent a69eb4058b
commit b392fa3345
9 changed files with 10 additions and 7 deletions

View File

@ -69,6 +69,7 @@ class PaymentController extends Controller
]); ]);
if (!Payment::create([ if (!Payment::create([
'name' => $request->input('name'), 'name' => $request->input('name'),
'icon' => $request->input('icon'),
'payment' => $request->input('payment'), 'payment' => $request->input('payment'),
'config' => $request->input('config'), 'config' => $request->input('config'),
'uuid' => Helper::randomChar(8) 'uuid' => Helper::randomChar(8)

View File

@ -211,7 +211,8 @@ class OrderController extends Controller
$methods = Payment::select([ $methods = Payment::select([
'id', 'id',
'name', 'name',
'payment' 'payment',
'icon'
]) ])
->where('enable', 1)->get(); ->where('enable', 1)->get();

View File

@ -138,6 +138,7 @@ CREATE TABLE `v2_payment` (
`uuid` char(32) NOT NULL, `uuid` char(32) NOT NULL,
`payment` varchar(16) NOT NULL, `payment` varchar(16) NOT NULL,
`name` varchar(255) NOT NULL, `name` varchar(255) NOT NULL,
`icon` varchar(255) DEFAULT NULL,
`config` text NOT NULL, `config` text NOT NULL,
`enable` tinyint(1) NOT NULL DEFAULT '0', `enable` tinyint(1) NOT NULL DEFAULT '0',
`sort` int(11) DEFAULT NULL, `sort` int(11) DEFAULT NULL,
@ -368,4 +369,4 @@ CREATE TABLE `v2_user` (
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 2021-09-21 10:07:22 -- 2021-12-13 06:14:37

View File

@ -462,3 +462,6 @@ ALTER TABLE `v2_server`
ALTER TABLE `v2_user` ALTER TABLE `v2_user`
CHANGE `remind_expire` `remind_expire` tinyint(4) NULL DEFAULT '0' AFTER `plan_id`, CHANGE `remind_expire` `remind_expire` tinyint(4) NULL DEFAULT '0' AFTER `plan_id`,
CHANGE `remind_traffic` `remind_traffic` tinyint(4) NULL DEFAULT '0' AFTER `remind_expire`; CHANGE `remind_traffic` `remind_traffic` tinyint(4) NULL DEFAULT '0' AFTER `remind_expire`;
ALTER TABLE `v2_payment`
ADD `icon` varchar(255) COLLATE 'utf8mb4_general_ci' NULL AFTER `name`;

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1638864867901" class="icon" viewBox="0 0 1557 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7350" xmlns:xlink="http://www.w3.org/1999/xlink" width="304.1015625" height="200"><defs><style type="text/css"></style></defs><path d="M1549.07234 88.238298v851.880851c0 42.485106-34.859574 78.434043-78.434042 78.434042H78.434043c-42.485106 0-78.434043-34.859574-78.434043-78.434042V88.238298C0 45.753191 34.859574 9.804255 78.434043 9.804255H1470.638298c43.574468 0 78.434043 34.859574 78.434042 78.434043z" fill="#4988FD" p-id="7351"></path><path d="M1.089362 221.140426h1547.982978v187.370212H1.089362z" fill="#3973F4" p-id="7352"></path><path d="M897.634043 735.319149H754.92766c-15.251064 0-27.234043-11.982979-27.234043-27.234043s11.982979-27.234043 27.234043-27.234042h142.706383c15.251064 0 27.234043 11.982979 27.234042 27.234042s-11.982979 27.234043-27.234042 27.234043zM667.778723 735.319149H191.72766c-15.251064 0-27.234043-11.982979-27.234043-27.234043s11.982979-27.234043 27.234043-27.234042h476.051063c15.251064 0 27.234043 11.982979 27.234043 27.234042s-11.982979 27.234043-27.234043 27.234043zM405.242553 844.255319H191.72766c-15.251064 0-27.234043-11.982979-27.234043-27.234042s11.982979-27.234043 27.234043-27.234043h213.514893c15.251064 0 27.234043 11.982979 27.234043 27.234043s-11.982979 27.234043-27.234043 27.234042z" fill="#C5DCFA" p-id="7353"></path><path d="M1322.485106 815.931915m-102.4 0a102.4 102.4 0 1 0 204.8 0 102.4 102.4 0 1 0-204.8 0Z" fill="#3973F4" p-id="7354"></path><path d="M1186.314894 815.931915m-102.4 0a102.4 102.4 0 1 0 204.8 0 102.4 102.4 0 1 0-204.8 0Z" fill="#6097FD" p-id="7355"></path></svg>

Before

Width:  |  Height:  |  Size: 1.8 KiB

View File

@ -1 +0,0 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1638864826102" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="3219" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M695.296 346.112c11.776 0 23.552 1.024 34.816 2.048-31.232-146.432-187.904-254.976-366.592-254.976-199.68 0-363.52 136.192-363.52 308.736 0 99.84 54.272 181.76 145.408 245.248l-36.352 109.056L236.032 692.736c45.568 9.216 81.92 18.432 127.488 18.432 11.264 0 22.528-0.512 33.792-1.536-7.168-24.064-11.264-49.664-11.264-76.288 0.512-158.208 136.704-287.232 309.248-287.232zM497.664 240.64c31.232 0 56.32 25.088 56.32 56.32s-25.088 56.32-56.32 56.32-56.32-25.088-56.32-56.32 25.088-56.32 56.32-56.32zM243.2 353.792c-31.232 0-56.32-25.088-56.32-56.32s25.088-56.32 56.32-56.32 56.32 25.088 56.32 56.32-25.088 56.32-56.32 56.32zM1024.512 630.784c0-145.408-145.408-263.68-308.736-263.68-173.056 0-309.248 118.272-309.248 263.68s136.192 263.68 309.248 263.68c36.352 0 72.704-9.216 109.056-18.432l99.84 54.784-27.136-90.624c72.704-54.784 126.976-127.488 126.976-209.408z m-403.456-40.96c-22.016 0-39.936-17.92-39.936-39.936s17.92-39.936 39.936-39.936 39.936 17.92 39.936 39.936-17.92 39.936-39.936 39.936z m199.68 2.56c-22.016 0-39.936-17.92-39.936-39.936s17.92-39.936 39.936-39.936 39.936 17.92 39.936 39.936-17.92 39.936-39.936 39.936z" fill="#69BB64" p-id="3220"></path></svg>

Before

Width:  |  Height:  |  Size: 1.5 KiB

View File

@ -1 +0,0 @@
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1638864818262" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2410" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M1023.795 853.64v6.348a163.807 163.807 0 0 1-163.807 163.807h-696.18A163.807 163.807 0 0 1 0 859.988v-696.18A163.807 163.807 0 0 1 163.807 0h696.181a163.807 163.807 0 0 1 163.807 163.807V853.64z" fill="#009FE9" p-id="2411"></path><path d="M844.836 648.267c-40.952-14.333-95.623-34.809-156.846-57.128a949.058 949.058 0 0 0 90.094-222.573H573.325V307.14h245.711v-43.41l-245.71 2.458V143.33H472.173c-18.223 0-21.704 20.476-21.704 20.476v102.38H204.759v40.952h245.71v61.427H245.712v40.952h409.518a805.522 805.522 0 0 1-64.909 148.246c-128.384-42.795-266.186-77.604-354.233-55.08a213.564 213.564 0 0 0-112.003 63.27c-95.418 116.917-26.21 294.034 175.274 294.034 119.989 0 236.087-67.366 325.771-177.73 134.322 65.932 398.666 176.297 398.666 176.297V701.3s-32.352-4.095-178.96-53.033z m-563.702 144.97c-158.893 0-204.759-124.699-126.336-194.112a191.86 191.86 0 0 1 90.913-46.276c93.575-10.238 189.811 35.629 293.624 86.614-74.941 94.598-166.674 153.774-258.2 153.774z" fill="#FFFFFF" p-id="2412"></path></svg>

Before

Width:  |  Height:  |  Size: 1.3 KiB

File diff suppressed because one or more lines are too long