|
|
|
@ -18,10 +18,8 @@ class Wxserver extends BaseController |
|
|
|
|
$appid = 'wxe3ed157849bd07b5'; |
|
|
|
|
$obj = new \app\common\library\wxserver\Server(); |
|
|
|
|
$domain = $this->request->domain(true); |
|
|
|
|
$arr = $obj->setDomain($domain, $appid); |
|
|
|
|
$model = new WxserverAccount(); |
|
|
|
|
$refresh_token = $model->where(['appid' => $appid])->value('refresh_token'); |
|
|
|
|
return $this->renderSuccess(['domain' => $domain, 'arr' => $arr, 'refresh_token' => $refresh_token]); |
|
|
|
|
$arr = $obj->setDomain($appid, $domain); |
|
|
|
|
return $this->renderSuccess(['domain' => $domain, 'arr' => $arr]); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|