Authored by 李靖

Merge branch 'master' into feature/newHome

... ... @@ -20,7 +20,7 @@ exports.cartPayAPI = (params) => {
method: params.activityInfo ? 'app.Shopping.easyPayment' : 'app.Shopping.payment',
enable_red_envelopes: 0, // h5不返回红包
cart_type: params.cart_type,
yoho_coin_mode: params.yoho_coin_mode,
yoho_coin_mode: params.yoho_coin_mode || 0,
uid: params.uid
};
... ...
'use strict';
const PAGE = 'H5';
const logger = global.yoho.logger;
const serviceAPI = global.yoho.ServiceAPI.ApiUrl;
module.exports = class extends global.yoho.BaseModel {
... ... @@ -11,6 +12,7 @@ module.exports = class extends global.yoho.BaseModel {
* 获取图片
*/
gen(udid) {
logger.info(`get verifiedGraphicCode: ${serviceAPI}passport/img-check.jpg?udid=${udid}&fromPage=${PAGE}`);
return Promise.resolve({
code: 200,
data: {
... ... @@ -30,6 +32,9 @@ module.exports = class extends global.yoho.BaseModel {
fromPage: PAGE,
degrees: captcha
}
}).then(result => {
logger.info(`app.verified.graphic result: ${JSON.stringify(result)}`);
return result;
});
}
};
... ...