|
@@ -2,6 +2,7 @@
|
|
|
|
|
|
namespace app\data\controller\shop;
|
|
|
|
|
|
+use app\data\model\BaseUserPayment;
|
|
|
use app\data\model\DataUser;
|
|
|
use app\data\model\ShopOrder;
|
|
|
use app\data\model\ShopOrderSend;
|
|
@@ -33,7 +34,14 @@ class Order extends Controller
|
|
|
{
|
|
|
parent::initialize();
|
|
|
$this->payments = PaymentService::getTypeAll();
|
|
|
- dump($this->payments);die();
|
|
|
+ dump($this->payments);
|
|
|
+ // 读取支付通道配置
|
|
|
+ $query = BaseUserPayment::mk()->where(['status' => 1, 'deleted' => 0]);
|
|
|
+ //$query->whereIn('code', str2arr($payments))->whereIn('type', PaymentService::getTypeApi($this->type));
|
|
|
+ $result = $query->order('sort desc,id desc')->column('type,code,name,cover,content,remark', 'code');
|
|
|
+ foreach ($result as &$vo) $vo['content'] = ['voucher_qrcode' => json_decode($vo['content'])->voucher_qrcode ?? ''];
|
|
|
+ $this->payments2 = array_values($result);
|
|
|
+ dump($this->payments2);
|
|
|
}
|
|
|
|
|
|
/**
|