songxingwei 2 years ago
parent
commit
b283962cfd
1 changed files with 8 additions and 8 deletions
  1. 8 8
      app/data/controller/shop/Order.php

+ 8 - 8
app/data/controller/shop/Order.php

@@ -34,14 +34,14 @@ class Order extends Controller
     {
         parent::initialize();
         $this->payments = PaymentService::getTypeAll();
-        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);
+//        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);
     }
 
     /**