wang hou sheng 8 months ago
parent c907c5900d
commit 1836d9589b
  1. 2
      app/api/controller/Wxserver.php
  2. 8
      app/common/library/wxserver/Server.php

@ -15,7 +15,7 @@ class Wxserver extends BaseController
public function index()
{
$obj = new \app\common\library\wxserver\Server();
$data = $obj->getAllCategory('wxe3ed157849bd07b5');
$data = $obj->getAuditStatus('wxe3ed157849bd07b5', 428711396);
return $this->renderSuccess($data);
}

@ -548,10 +548,10 @@ class Server
* @notes:检测审核状态
* @param $appid
* @param $auditid
* @return bool
* @return array|mixed
* @author: wanghousheng
*/
public function getAuditStatus($appid, $auditid): bool
public function getAuditStatus($appid, $auditid)
{
$access_token = $this->authorizerAccessToken($appid);
if ($access_token && $auditid) {
@ -578,10 +578,10 @@ class Server
$model = new WxserverAccount();
$model->update($up, ['appid' => $appid]);
}
return true;
return $result;
}
}
return false;
return [];
}
public function getAllCategory($appid): array

Loading…
Cancel
Save