wang hou sheng 8 months ago
parent fc1b26d8cd
commit 4dc8a2fd0f
  1. 7
      app/api/controller/Wxserver.php

@ -15,10 +15,13 @@ class Wxserver extends BaseController
public function index()
{
$appid = 'wxe3ed157849bd07b5';
$obj = new \app\common\library\wxserver\Server();
$domain = $this->request->domain(true);
$arr = $obj->setDomain($domain, 'wxe3ed157849bd07b5');
return $this->renderSuccess(['domain' => $domain, 'arr' => $arr]);
$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]);
}

Loading…
Cancel
Save