Commit 954d0877 authored by 何娜's avatar 何娜

调试接口

parent b7eca5f6
Pipeline #27545 passed with stage
in 22 seconds
...@@ -64,7 +64,7 @@ class OrderController extends Controller { ...@@ -64,7 +64,7 @@ class OrderController extends Controller {
async create() { async create() {
const { ctx, service } = this; const { ctx, service } = this;
ctx.validate(this.createRule); // ctx.validate(this.createRule);
let { appKey, userId, notifyUrl, backUrl, orderId, phone, netMark } = ctx.request.body; let { appKey, userId, notifyUrl, backUrl, orderId, phone, netMark } = ctx.request.body;
// const appKeyInfo = await service.partner.fetchInfo(appKey); // const appKeyInfo = await service.partner.fetchInfo(appKey);
// if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableYys === true)) { // if (!(appKeyInfo && appKeyInfo.valid === true && appKeyInfo.enableYys === true)) {
...@@ -73,7 +73,7 @@ class OrderController extends Controller { ...@@ -73,7 +73,7 @@ class OrderController extends Controller {
if (netMark !== 1) { if (netMark !== 1) {
netMark = 0; netMark = 0;
} }
const areaInfo = await service.task.phoneArea(phone); // const areaInfo = await service.task.phoneArea(phone);
const object = { const object = {
orderId, orderId,
userId: userId || '', userId: userId || '',
...@@ -81,9 +81,9 @@ class OrderController extends Controller { ...@@ -81,9 +81,9 @@ class OrderController extends Controller {
backUrl: backUrl || '', backUrl: backUrl || '',
appKey, appKey,
status: 'init', status: 'init',
phone, // phone: phone || '',
city: areaInfo.province, // city: areaInfo.province,
operator: areaInfo.operator, // operator: areaInfo.operator,
netMark, netMark,
}; };
if (orderId) { if (orderId) {
......
...@@ -45,7 +45,7 @@ class TaskService extends Service { ...@@ -45,7 +45,7 @@ class TaskService extends Service {
}); });
ctx.logger.info(`【Task】config ${configUrl} params`, JSON.stringify(result.data)); ctx.logger.info(`【Task】config ${configUrl} params`, JSON.stringify(result.data));
this._checkSuccess(result); this._checkSuccess(result);
return result; return result.data.data;
} }
async create(data) { async create(data) {
......
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