mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改支付
This commit is contained in:
parent
d2cfdeb0bd
commit
f66acfe472
@ -296,7 +296,7 @@ class Order extends Auth
|
|||||||
[$map, $types] = [['status' => 1, 'deleted' => 0], []];
|
[$map, $types] = [['status' => 1, 'deleted' => 0], []];
|
||||||
foreach (PaymentService::TYPES as $type => $arr) if (in_array($this->type, $arr['bind'])) $types[] = $type;
|
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));
|
$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());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -41,7 +41,10 @@
|
|||||||
<td class='list-table-sort-td'>
|
<td class='list-table-sort-td'>
|
||||||
<label><input data-action-blur="{:request()->url()}" data-value="id#{$vo.id};action#sort;sort#{value}" data-loading="false" value="{$vo.sort}" class="list-sort-input"></label>
|
<label><input data-action-blur="{:request()->url()}" data-value="id#{$vo.id};action#sort;sort#{value}" data-loading="false" value="{$vo.sort}" class="list-sort-input"></label>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-left nowrap">{$vo.name|default=''}</td>
|
<td class="text-left nowrap">
|
||||||
|
<div class="headimg" data-lazy-src="{$vo.cover}"></div>
|
||||||
|
{$vo.name|default=''}
|
||||||
|
</td>
|
||||||
<td class="text-left nowrap">{$vo.code|default=''}</td>
|
<td class="text-left nowrap">{$vo.code|default=''}</td>
|
||||||
<td class="text-left nowrap">{$types[$vo.type]['name']??$vo.type}</td>
|
<td class="text-left nowrap">{$types[$vo.type]['name']??$vo.type}</td>
|
||||||
<td>{if $vo.status eq 0}<span class="color-red">已禁用</span>{elseif $vo.status eq 1}<span class="color-green">已激活</span>{/if}</td>
|
<td>{if $vo.status eq 0}<span class="color-red">已禁用</span>{elseif $vo.status eq 1}<span class="color-green">已激活</span>{/if}</td>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user