diff --git a/app/admin/controller/Wxwholesaler.php b/app/admin/controller/Wxwholesaler.php index 088e9b84..9d0e8fff 100644 --- a/app/admin/controller/Wxwholesaler.php +++ b/app/admin/controller/Wxwholesaler.php @@ -335,7 +335,7 @@ class Wxwholesaler extends Controller return $this->renderSuccess('success'); } } - return $this->renderError($domain); + return $this->renderError($msg); } /** diff --git a/app/common/library/wxserver/Wholesaler.php b/app/common/library/wxserver/Wholesaler.php index f7b9d872..0d8096a0 100644 --- a/app/common/library/wxserver/Wholesaler.php +++ b/app/common/library/wxserver/Wholesaler.php @@ -656,7 +656,7 @@ class Wholesaler $token = $this->authorizerAccessToken($appid); if ($token) { $url = "https://api.weixin.qq.com/wxa/setwebviewdomain?access_token=$token"; - $data['action'] = 'set'; + $data['action'] = 'add'; $data['webviewdomain'] = $domain; $result = $this->curlPost($url, json_encode($data)); $result = json_decode($result, true);