修复 paypal, stripe 图标

This commit is contained in:
Edward Yang 2022-11-22 14:21:37 +08:00
parent fc663f6c14
commit 3bf40cdc96
5 changed files with 7 additions and 4 deletions

View File

@ -12,6 +12,7 @@ class PluginResource extends JsonResource
*
* @param Request $request
* @return array
* @throws \Exception
*/
public function toArray($request): array
{

View File

@ -12,6 +12,7 @@ class PaymentMethodItem extends JsonResource
*
* @param Request $request
* @return array
* @throws \Exception
*/
public function toArray($request): array
{
@ -21,7 +22,7 @@ class PaymentMethodItem extends JsonResource
'code' => $this->code,
'name' => $pluginSetting->name,
'description' => $pluginSetting->description,
'icon' => $pluginSetting->icon,
'icon' => plugin_resize($this->code, $pluginSetting->icon),
];
}
}

View File

@ -12,6 +12,7 @@ class ShippingMethodItem extends JsonResource
*
* @param Request $request
* @return array
* @throws \Exception
*/
public function toArray($request): array
{
@ -21,7 +22,7 @@ class ShippingMethodItem extends JsonResource
'code' => $this->code,
'name' => $pluginSetting->name,
'description' => $pluginSetting->description,
'icon' => $pluginSetting->icon,
'icon' => plugin_resize($this->code, $pluginSetting->icon),
];
}
}

View File

@ -4,7 +4,7 @@
"description": "PayPal 支付 <a href='https://developer.paypal.com/' target='_blank'>PayPal Developer</a>",
"type": "payment",
"version": "v1.0.0",
"icon": "plugin/paypal/image/logo.png",
"icon": "/image/logo.png",
"author": {
"name": "成都光大网络科技有限公司",
"email": "yangjin@guangda.work"

View File

@ -4,7 +4,7 @@
"description": "Stripe 支付 <a href='https://stripe.com/' target='_blank'>Stripe</a>",
"type": "payment",
"version": "v1.0.0",
"icon": "plugin/stripe/image/logo.png",
"icon": "/image/logo.png",
"author": {
"name": "成都光大网络科技有限公司",
"email": "yangjin@guangda.work"