瀏覽代碼

支付类型

shish 2 年之前
父節點
當前提交
2ab714b899

+ 2 - 0
app-hd/controllers/PurchaseClearController.php

@@ -57,6 +57,8 @@ class PurchaseClearController extends BaseController
         $aheadTime = dict::getDict('order_online_pay_has_ahead_time');
         $remainSecond = $hasTime - $aheadTime;
         $respond['remainSecond'] = $remainSecond;
+        $getPayType = dict::getDict('getPayType');
+        $respond['getPayType'] = $getPayType;
         util::success($respond);
     }
 

+ 2 - 0
app-hd/controllers/PurchaseController.php

@@ -625,6 +625,8 @@ class PurchaseController extends BaseController
         }
         $info['hasDebtPay'] = $hasDebtPay;
         $info['balance'] = $this->shop->balance ?? 0;
+        $getPayType = dict::getDict('getPayType');
+        $info['getPayType'] = $getPayType;
         util::success($info);
     }
 

+ 1 - 0
common/components/dict.php

@@ -8,6 +8,7 @@ class dict
 {
 
     public static $data = [
+        'getPayType' => 1,
         'appVersion' => 2,
         'transType' => [
             //德邦