shish 3 éve
szülő
commit
df3b19aa78
1 módosított fájl, 2 hozzáadás és 2 törlés
  1. 2 2
      app-hd/controllers/PurchaseClearController.php

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

@@ -12,7 +12,7 @@ use common\components\util;
 class PurchaseClearController extends BaseController
 {
 
-    public $guestAccess = ['wx-pay','create-order'];
+    public $guestAccess = ['wx-pay', 'create-order'];
 
     //生成结帐订单 ssh 2021.1.26
     public function actionCreateOrder()
@@ -81,7 +81,7 @@ class PurchaseClearController extends BaseController
             }
         }
         if (empty($openId)) {
-            util::fail('没有openId');
+            util::success(['hasNoMiniOpenId' => 1]);
         }
         $capitalType = dict::getDict('capitalType', 'hdPurchaseClear', 'id');
         //小程序支付