Commit be647f85 authored by 姜登's avatar 姜登

yys

parent e5c9ba36
Pipeline #8355 passed with stage
in 9 minutes 16 seconds
...@@ -36,7 +36,7 @@ class ScriptsService extends Service { ...@@ -36,7 +36,7 @@ class ScriptsService extends Service {
dataType: 'json', dataType: 'json',
contentType: 'json', contentType: 'json',
}); });
ctx.logger.info(`【Scripts】fetchScripts,${baseURL + fetchScriptsUrl}`, 'result:', result.data); ctx.logger.info(`【Scripts】fetchScripts,${baseURL + fetchScriptsUrl}`, 'result:', JSON.stringify(result.data));
if (result.data && result.data.length > 0) { if (result.data && result.data.length > 0) {
await this.app.redis.set(redisScriptsKey, JSON.stringify(result.data), 'EX', 300); await this.app.redis.set(redisScriptsKey, JSON.stringify(result.data), 'EX', 300);
} }
...@@ -86,7 +86,7 @@ class ScriptsService extends Service { ...@@ -86,7 +86,7 @@ class ScriptsService extends Service {
dataType: 'json', dataType: 'json',
contentType: 'json', contentType: 'json',
}); });
ctx.logger.info(`【Scripts】fetchParams,${baseURL + fetchParamsInfoUrl}`, 'result:', result.data); ctx.logger.info(`【Scripts】fetchParams,${baseURL + fetchParamsInfoUrl}`, 'result:', JSON.stringify(result.data));
if (result.data && result.data.length > 0) { if (result.data && result.data.length > 0) {
await this.app.redis.set(redisParamsKey, JSON.stringify(result.data), 'EX', 300); await this.app.redis.set(redisParamsKey, JSON.stringify(result.data), 'EX', 300);
} }
...@@ -146,7 +146,7 @@ class ScriptsService extends Service { ...@@ -146,7 +146,7 @@ class ScriptsService extends Service {
contentType: 'json', contentType: 'json',
}); });
ctx.logger.info(`fetchScriptByCityName,${baseURL + fetchScriptByCityNameUrl + '?name=' + name}`, 'result:', JSON.stringify(result.data)); ctx.logger.info(`fetchScriptByCityName,${baseURL + fetchScriptByCityNameUrl + '?name=' + name}`, 'result:', JSON.stringify(result.data));
if (result.stauts === 200) { if (result.status === 200) {
return result.data.scriptId; return result.data.scriptId;
} }
ctx.throw(400, '手机号码区域验证失败'); ctx.throw(400, '手机号码区域验证失败');
......
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