songxingwei 2 年之前
父節點
當前提交
7ee11b94c7
共有 1 個文件被更改,包括 9 次插入2 次删除
  1. 9 2
      app/data/controller/shop/Order.php

+ 9 - 2
app/data/controller/shop/Order.php

@@ -33,8 +33,15 @@ class Order extends Controller
     protected function initialize()
     {
         parent::initialize();
-        $this->payments = PaymentService::getTypeAll();
-        dump($this->payments);
+        //$this->payments = PaymentService::getTypeAll();
+        $this->payments = [
+            [
+                'name'=>'支付宝支付'
+            ],
+            [
+                'name'=>'微信支付'
+            ]
+        ];
 //        // 读取支付通道配置
 //        $query = BaseUserPayment::mk()->where(['status' => 1, 'deleted' => 0]);
 //        //$query->whereIn('code', str2arr($payments))->whereIn('type', PaymentService::getTypeApi($this->type));