修复 paypal, stripe 图标
This commit is contained in:
parent
fc663f6c14
commit
3bf40cdc96
|
|
@ -12,6 +12,7 @@ class PluginResource extends JsonResource
|
|||
*
|
||||
* @param Request $request
|
||||
* @return array
|
||||
* @throws \Exception
|
||||
*/
|
||||
public function toArray($request): array
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Reference in New Issue