@ -12,10 +12,8 @@ class Wxserver extends BaseController
{
public function index()
$ext_json['extAppid'] = '123456';
$ext_json['ext']['attr']['store_id'] = 1001;
$ext_json['window'] = [];
$data['ext_json'] = $ext_json;
$obj = new \app\common\library\wxserver\Server();
$data = $obj->getAllCategory('wxe3ed157849bd07b5');
return $this->renderSuccess($data);
}
@ -533,7 +533,7 @@ class Server
return false;
private function getAllCategory($appid): array
public function getAllCategory($appid): array
$data = [];
$access_token = $this->authorizerAccessToken($appid);