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

调试接口

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