|
|
@@ -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");
|