Commit 7855e6d6 by zhaoxiqing

gsb

parent 92d492d8
......@@ -9,6 +9,17 @@ class APIBase extends DocBase {
this.cacheManager = system.getObject("db.common.cacheManager");
this.logCtl = system.getObject("web.common.oplogCtl");
this.oplogSve = system.getObject("service.common.oplogSve");
this.merchantappletuserSve = system.getObject("service.uc.merchantappletuserSve");
}
async getLoginUser(merchant_id, openid, forceUpdate) {
return await this.merchantappletuserSve.getLoginUser({merchant_id: merchant_id, openid: openid, forceUpdate: forceUpdate});
}
async getMerchant(merchant_id) {
return await this.merchantSve.getMerchantWithCache({id: merchant_id, forceUpdate: true});
}
getUUID() {
var uuid = uuidv4();
......@@ -17,7 +28,7 @@ class APIBase extends DocBase {
}
/**
* 验证签名
* @param {*} params 要验证的参数
* @param {*} params 要验证的参数
* @param {*} app_key 应用的校验key
*/
async verifySign(params, app_key) {
......
......@@ -22,7 +22,7 @@ class ServiceBase {
/**
* 验证签名
* @param {*} params 要验证的参数
* @param {*} params 要验证的参数
* @param {*} app_key 应用的校验key
*/
async verifySign(params, app_key) {
......@@ -55,7 +55,7 @@ class ServiceBase {
}
/**
* 创建签名
* @param {*} params 要验证的参数
* @param {*} params 要验证的参数
* @param {*} app_key 应用的校验key
*/
async createSign(params, app_key) {
......@@ -220,7 +220,7 @@ class ServiceBase {
}
try {
var params = {
"action_process": "xgg-saas-platform",
"action_process": "sijibao",
"action_type": apiName,
"action_body": params || {},
}
......@@ -231,7 +231,7 @@ class ServiceBase {
url: reqUrl,
data: params
});
console.log(rs);
return rs.data;
}
......@@ -293,4 +293,4 @@ class ServiceBase {
return o.toString().trim();
}
}
module.exports = ServiceBase;
\ No newline at end of file
module.exports = ServiceBase;
......@@ -188,22 +188,22 @@ class System {
let dev = "http://39.107.234.14";
return {
// 公共服务
common: local + ":3102" + path,
common: dev + ":3102" + path,
// 商户服务
merchant: local + ":3101" + path,
merchant: dev + ":3101" + path,
// 订单服务
order: local + ":3103" + path,
order: dev + ":3103" + path,
// 发票服务
invoice: dev + ":3105" + path,
// 用户服务
uc: local + ":3106" + path,
uc: dev + ":3106" + path,
// 交易
trade: local + ":3107" + path,
trade: dev + ":3107" + path,
}
} else {
return {
......
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