shish 7 месяцев назад
Родитель
Сommit
356f103e1f
1 измененных файлов с 7 добавлено и 1 удалено
  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");