|
|
@@ -29,6 +29,17 @@ class ProtobufController extends Controller
|
|
|
*/
|
|
|
public function gameapi(HttpRequest $httpRequest)
|
|
|
{
|
|
|
+ // 获取请求参数
|
|
|
+ Log::info('请求信息', [
|
|
|
+ 'method' => $httpRequest->method(),
|
|
|
+ 'path' => $httpRequest->path(),
|
|
|
+ 'content_type' => $httpRequest->header('Content-Type'),
|
|
|
+ 'request_unid' => RUN_UNIQID,
|
|
|
+ 'header'=>[
|
|
|
+ 'token'=>$httpRequest->header('token')
|
|
|
+ ]
|
|
|
+ ]);
|
|
|
+
|
|
|
// 初始化请求日志记录器
|
|
|
$requestLogger = new \App\Module\System\Services\RequestLogger($httpRequest);
|
|
|
|
|
|
@@ -221,7 +232,7 @@ class ProtobufController extends Controller
|
|
|
$hasActionFunc = 'has' .ucfirst($field). $actionName;
|
|
|
$getActionFunc = 'get' . ucfirst($field).$actionName;
|
|
|
$request->hasHouseUp();
|
|
|
- Logger::debug('<UNK>', [$hasMethod, $getMethod, $hasActionFunc]);
|
|
|
+// Logger::debug('<UNK>', [$hasMethod, $getMethod, $hasActionFunc]);
|
|
|
if ( $request->$hasActionFunc()) {
|
|
|
return [
|
|
|
'field' => $field,
|