Commit 8d14d0a1 by 王昆

Merge branch 'xgg-saas-merchant-h5' into xgg-saas-merchant

parents 35a6ef4c 92d492d8
......@@ -66,7 +66,7 @@ class MerchantService extends ServiceBase {
if(!merchant || !merchant.id || params.forceUpdate) {
let info = await this.info(params) || {};
merchant = info.data || {};
await this.redisClient.setWithEx(key, JSON.stringify(merchant), 60 * 31);
await this.redisClient.setWithEx(key, JSON.stringify(merchant), 60 * 5);
} else {
merchant = JSON.parse(merchant);
}
......@@ -89,7 +89,7 @@ class MerchantService extends ServiceBase {
let rs = await this.callms("merchant", "mchtSettings", {id: merchant_id}) || {};
settings = rs.data;
if(settings && settings.appid && settings.secret) {
await this.redisClient.setWithEx(key, JSON.stringify(settings), 60 * 30);
await this.redisClient.setWithEx(key, JSON.stringify(settings), 60 * 5);
}
} else {
settings = JSON.parse(settings);
......
......@@ -118,6 +118,7 @@ class MerchantApplet extends AppletBase {
let order = {
saas_id: merchant.saas_id,
merchant_id: merchant.id,
channel_id: merchant.channel_id,
product_id: "10020000",
merchant_app_user_id: loginUser.id,
price: system.y2f(merchant.sign.bm_reg_price) || 0,
......
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