Commit a6e4752f authored by zazaname's avatar zazaname

调试

parent 0ae5d70d
...@@ -75,4 +75,12 @@ class Controller extends BaseController ...@@ -75,4 +75,12 @@ class Controller extends BaseController
echo response()->json($res)->setEncodingOptions(JSON_UNESCAPED_UNICODE); echo response()->json($res)->setEncodingOptions(JSON_UNESCAPED_UNICODE);
exit(); exit();
} }
public function shutdownAction()
{
$error = error_get_last();
if (!is_null($error)) { // 异常退出
dingdingLog($error);
}
}
} }
...@@ -16,20 +16,12 @@ class ReportController extends Controller ...@@ -16,20 +16,12 @@ class ReportController extends Controller
*/ */
public function init() public function init()
{ {
register_shutdown_function([$this, 'shutdownAction']);
$this->checkParam(['app_id','ctype']); $this->checkParam(['app_id','ctype']);
$indexSv = new InitService(); $indexSv = new InitService();
$data = $indexSv->storeInitData($this->requestData); $data = $indexSv->storeInitData($this->requestData);
return json($data); return json($data);
} }
public function shutdownAction()
{
$error = error_get_last();
if (!is_null($error)) { // 异常退出
dingdingLog($error);
}
}
/** /**
* 角色上报 * 角色上报
......
...@@ -24,8 +24,8 @@ class Jiuzi implements ISdkFactory ...@@ -24,8 +24,8 @@ class Jiuzi implements ISdkFactory
$ver_info = json_decode($request['ver_info'],true); $ver_info = json_decode($request['ver_info'],true);
//获取请求参数 //获取请求参数
$postParam = [ $postParam = [
'uid' => $ver_info['unionId'], 'uid' => $ver_info['uid'],
'access_token' => $ver_info['access_token'], 'access_token' => $ver_info['token'],
'gid' => $verInfo->ver_appid, 'gid' => $verInfo->ver_appid,
'version' => $request['unionId'] ?? 1, 'version' => $request['unionId'] ?? 1,
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment