shish hai 6 meses
pai
achega
356f103e1f
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      app-ghs/controllers/RenewController.php

+ 7 - 1
app-ghs/controllers/RenewController.php

@@ -151,7 +151,13 @@ class RenewController extends BaseController
         $totalFee = $price;
 
         $admin = $this->admin;
-        $openId = $admin->ghsMiniOpenId;
+        $openId = $get['currentMiniOpenId'] ?? '';
+        if (empty($openId)) {
+            $openId = $admin->ghsMiniOpenId;
+        }
+        if (empty($openId)) {
+            util::fail('账号有问题,无法支付');
+        }
         $capitalType = dict::getDict('capitalType', 'xhRenew', 'id');
         $attach = 'capitalType=' . $capitalType;
         $wx = Yii::getAlias("@vendor/weixin");