@ -335,7 +335,7 @@ class Wxwholesaler extends Controller
return $this->renderSuccess('success');
}
return $this->renderError($domain);
return $this->renderError($msg);
/**
@ -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);