pull/5/head
wanghousheng 4 months ago
parent 09169eb76e
commit b832ced56d
  1. 2
      app/admin/controller/Wxwholesaler.php
  2. 2
      app/common/library/wxserver/Wholesaler.php

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

@ -656,7 +656,7 @@ class Wholesaler
$token = $this->authorizerAccessToken($appid); $token = $this->authorizerAccessToken($appid);
if ($token) { if ($token) {
$url = "https://api.weixin.qq.com/wxa/setwebviewdomain?access_token=$token"; $url = "https://api.weixin.qq.com/wxa/setwebviewdomain?access_token=$token";
$data['action'] = 'set'; $data['action'] = 'add';
$data['webviewdomain'] = $domain; $data['webviewdomain'] = $domain;
$result = $this->curlPost($url, json_encode($data)); $result = $this->curlPost($url, json_encode($data));
$result = json_decode($result, true); $result = json_decode($result, true);

Loading…
Cancel
Save