wang hou sheng 8 months ago
parent fb38c8aab5
commit 554eef0a66
  1. 6
      app/api/controller/Wxserver.php
  2. 2
      app/common/library/wxserver/Server.php

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

@ -533,7 +533,7 @@ class Server
return false; return false;
} }
private function getAllCategory($appid): array public function getAllCategory($appid): array
{ {
$data = []; $data = [];
$access_token = $this->authorizerAccessToken($appid); $access_token = $this->authorizerAccessToken($appid);

Loading…
Cancel
Save