Commit a6e4752f authored by zazaname's avatar zazaname

调试

parent 0ae5d70d
......@@ -75,4 +75,12 @@ class Controller extends BaseController
echo response()->json($res)->setEncodingOptions(JSON_UNESCAPED_UNICODE);
exit();
}
public function shutdownAction()
{
$error = error_get_last();
if (!is_null($error)) { // 异常退出
dingdingLog($error);
}
}
}
......@@ -16,20 +16,12 @@ class ReportController extends Controller
*/
public function init()
{
register_shutdown_function([$this, 'shutdownAction']);
$this->checkParam(['app_id','ctype']);
$indexSv = new InitService();
$data = $indexSv->storeInitData($this->requestData);
return json($data);
}
public function shutdownAction()
{
$error = error_get_last();
if (!is_null($error)) { // 异常退出
dingdingLog($error);
}
}
/**
* 角色上报
......
......@@ -24,8 +24,8 @@ class Jiuzi implements ISdkFactory
$ver_info = json_decode($request['ver_info'],true);
//获取请求参数
$postParam = [
'uid' => $ver_info['unionId'],
'access_token' => $ver_info['access_token'],
'uid' => $ver_info['uid'],
'access_token' => $ver_info['token'],
'gid' => $verInfo->ver_appid,
'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