Browse Source

支付报错

shish 5 years ago
parent
commit
6896a8b5aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/ghs/controllers/OrderController.php

+ 1 - 1
app/ghs/controllers/OrderController.php

@@ -368,7 +368,7 @@ class OrderController extends BaseController
 			//花卉宝代为申请的微信支付
 			//$merchantExtend = $this->sjExtend;
 			$merchantExtend = WxOpenClass::getGhsWxInfo();
-			if ($merchantExtend['wxPayApply'] == 1) {
+			if (isset($merchantExtend['wxPayApply']) && $merchantExtend['wxPayApply'] == 1) {
 				$input->SetSub_openid($openId);
 			} else {
 				$input->SetOpenid($openId);