From f66acfe4728957de797be0765c44b2941fca5cda Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E6=99=AF=E7=AB=8B?= Date: Fri, 19 Mar 2021 17:54:47 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=94=AF=E4=BB=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/data/controller/api/auth/Order.php | 2 +- app/data/view/shop_payment/index.html | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/data/controller/api/auth/Order.php b/app/data/controller/api/auth/Order.php index 949f7ea13..c1bacdf2c 100644 --- a/app/data/controller/api/auth/Order.php +++ b/app/data/controller/api/auth/Order.php @@ -296,7 +296,7 @@ class Order extends Auth [$map, $types] = [['status' => 1, 'deleted' => 0], []]; foreach (PaymentService::TYPES as $type => $arr) if (in_array($this->type, $arr['bind'])) $types[] = $type; $query = $this->app->db->name('ShopPayment')->where($map)->whereIn('type', $types)->whereIn('code', str2arr($payments)); - $this->success('获取支付参数数据', $query->order('sort desc,id desc')->field('type,code,name')->select()->toArray()); + $this->success('获取支付参数数据', $query->order('sort desc,id desc')->field('type,code,name,cover')->select()->toArray()); } /** diff --git a/app/data/view/shop_payment/index.html b/app/data/view/shop_payment/index.html index a57f0544a..b5146b2b2 100644 --- a/app/data/view/shop_payment/index.html +++ b/app/data/view/shop_payment/index.html @@ -41,7 +41,10 @@ - {$vo.name|default=''} + +
+ {$vo.name|default=''} + {$vo.code|default=''} {$types[$vo.type]['name']??$vo.type} {if $vo.status eq 0}已禁用{elseif $vo.status eq 1}已激活{/if}