diff --git a/app/common/library/wxserver/Wholesaler.php b/app/common/library/wxserver/Wholesaler.php index 54bf3008..f7b9d872 100644 --- a/app/common/library/wxserver/Wholesaler.php +++ b/app/common/library/wxserver/Wholesaler.php @@ -85,7 +85,7 @@ class Wholesaler $url = "https://api.weixin.qq.com/wxa/security/applysetorderpathinfo?component_access_token=$token"; $result = $this->curlPost($url, json_encode($data)); $result = json_decode($result, true); - return !empty($result['errcode']) ? $result['errcode'] : $msg; + return !empty($result['errmsg']) ? $result['errmsg'] : $msg; } public function getStableAccessToken()