Commit a8a6105b authored by 任国军's avatar 任国军

add notify log

parent 309287ad
Pipeline #24557 passed with stage
in 4 seconds
......@@ -93,7 +93,6 @@ class WechatController extends Controller {
xmlData += '<return_code><![CDATA[SUCCESS]]></return_code>';
xmlData += '<return_msg><![CDATA[OK]]></return_msg>';
xmlData += '</xml>';
ctx.body = xmlData;
ctx.logger.info('notify_headers: ' + JSON.stringify(ctx.request.header));
......@@ -127,6 +126,7 @@ class WechatController extends Controller {
}
ctx.set('Content-Type', 'text/xml');
ctx.body = xmlData;
return ctx.body;
}
}
......
......@@ -4,7 +4,7 @@ module.exports = app => {
const router = app.router.namespace(app.config.projectRootPath + '/course/v5');
// const miniAuth = app.middleware.miniAuthV5();// 因为不跟现有的用户中心系统,所以使用单独的登录中间件
const auth = app.middleware.verifyAuth;
const xmlparse = app.middleware.xmlparse();
// const xmlparse = app.middleware.xmlparse();
router.post('third', '/verification_code', 'course.v5.user.sendVerificationCode');// 发送验证码
router.post('third', '/login/phone', 'course.v5.user.loginByPhone');// 手机号登录
......@@ -26,7 +26,7 @@ module.exports = app => {
router.get('third', '/wechat/callbackAction', 'course.v5.wechat.check');
router.post('third', '/wechat/callbackAction', 'course.v5.wechat.callbackAction');
router.post('third', '/wechat/test', 'course.v5.wechat.test');
router.post('third', '/wechat/pay/notify', xmlparse, 'course.v5.wechat.payNotify');
router.post('third', '/wechat/pay/notify', 'course.v5.wechat.payNotify');
router.post('third', '/questionnaire', auth({ is_force: 1 }), 'course.v5.option.addQuestionnaire');// 填写问卷
router.get('third', '/questionnaire', 'course.v5.option.getQuestionnaire');// 获取问卷
router.post('third', '/channel/unlimited_code', 'course.v5.option.addUnlimitedCodeByChannel');// 保存渠道小程序码
......
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