@xmobitea/gn-server 2.4.5 → 2.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -525,7 +525,7 @@ if (parentPort) {
|
|
|
525
525
|
secretInfo: null as any,
|
|
526
526
|
request: request.request,
|
|
527
527
|
log(log: any) {
|
|
528
|
-
logs.push(log);
|
|
528
|
+
logs.push(JSON.stringify(log));
|
|
529
529
|
},
|
|
530
530
|
};
|
|
531
531
|
|
|
@@ -538,7 +538,7 @@ if (parentPort) {
|
|
|
538
538
|
secretInfo: null as any,
|
|
539
539
|
request: null as any,
|
|
540
540
|
log(log: any) {
|
|
541
|
-
logs.push(log);
|
|
541
|
+
logs.push(JSON.stringify(log));
|
|
542
542
|
},
|
|
543
543
|
};
|
|
544
544
|
|
|
@@ -573,7 +573,7 @@ if (parentPort) {
|
|
|
573
573
|
secretInfo: secretInfo,
|
|
574
574
|
request: request.request,
|
|
575
575
|
log(log: any) {
|
|
576
|
-
logs.push(log);
|
|
576
|
+
logs.push(JSON.stringify(log));
|
|
577
577
|
},
|
|
578
578
|
};
|
|
579
579
|
|
|
@@ -599,7 +599,7 @@ if (parentPort) {
|
|
|
599
599
|
secretInfo: secretInfo,
|
|
600
600
|
request: request.request,
|
|
601
601
|
log(log: any) {
|
|
602
|
-
logs.push(log);
|
|
602
|
+
logs.push(JSON.stringify(log));
|
|
603
603
|
},
|
|
604
604
|
};
|
|
605
605
|
|
package/dist/index.js
CHANGED
|
@@ -13622,6 +13622,7 @@ const GNParameterCode_1 = __webpack_require__(38343);
|
|
|
13622
13622
|
const GNErrorCode_1 = __webpack_require__(94559);
|
|
13623
13623
|
const RequestHandler_1 = __webpack_require__(47239);
|
|
13624
13624
|
const ICloudScriptService_1 = __webpack_require__(64469);
|
|
13625
|
+
const GNData_1 = __webpack_require__(67549);
|
|
13625
13626
|
class ExecuteFunctionOperationRequest extends OperationRequest_1.OperationRequest {
|
|
13626
13627
|
isValidRequest() {
|
|
13627
13628
|
if (!super.isValidRequest())
|
|
@@ -13749,7 +13750,13 @@ class ExecuteFunctionRequestHandler extends RequestHandler_1.RequestHandler {
|
|
|
13749
13750
|
operationResponse.setParameter(ParameterCode_1.ParameterCode.ErrorCode, GNErrorCode_1.GNErrorCode.GameNotFound);
|
|
13750
13751
|
return operationResponse;
|
|
13751
13752
|
}
|
|
13752
|
-
let
|
|
13753
|
+
let functionParameters = request.functionParameters;
|
|
13754
|
+
if (functionParameters != null) {
|
|
13755
|
+
if (functionParameters instanceof GNData_1.GNData) {
|
|
13756
|
+
functionParameters = functionParameters.toData();
|
|
13757
|
+
}
|
|
13758
|
+
}
|
|
13759
|
+
let response = yield cloudScriptService.executeCloudScriptFunction(request.userId, request.functionName, functionParameters, request.version, customTagsData);
|
|
13753
13760
|
operationResponse.setParameter(GNParameterCode_1.GNParameterCode.FunctionLogs, response.logs);
|
|
13754
13761
|
if (response.response.status == ICloudScriptService_1.ExecuteResponseStatus.Ok) {
|
|
13755
13762
|
operationResponse.setParameter(ParameterCode_1.ParameterCode.ErrorCode, GNErrorCode_1.GNErrorCode.Ok);
|
|
@@ -86365,7 +86372,6 @@ class ServerApplication extends BuilderBase {
|
|
|
86365
86372
|
fullLogPath = process.cwd() + "/" + configFullLogPath;
|
|
86366
86373
|
}
|
|
86367
86374
|
}
|
|
86368
|
-
console.log(fullLogPath);
|
|
86369
86375
|
console.log("[GN] FullLogPath at: " + fullLogPath);
|
|
86370
86376
|
xDebug_1.Debug.init({
|
|
86371
86377
|
isLogToConsoleEnable: this.getLogSettings().getLogToConsoleEnable(),
|