Commit 061bc4fb by 兰国旗

laolan

parents 3325a025 1f4c3f35
...@@ -102,6 +102,9 @@ class TmQueryAPI extends WEBBase { ...@@ -102,6 +102,9 @@ class TmQueryAPI extends WEBBase {
case "getNclByCode": case "getNclByCode":
opResult = await this.toolSve.getNclByCode(pobj,req); opResult = await this.toolSve.getNclByCode(pobj,req);
break; break;
case "getAllNcl":
opResult = await this.toolSve.getAllNcl(pobj,req);
break;
case "tmstatistics": //商标统计接口总量、有效、申请 case "tmstatistics": //商标统计接口总量、有效、申请
opResult = await this.tmquerySve.tmstatistics(action_body,req); opResult = await this.tmquerySve.tmstatistics(action_body,req);
break; break;
......
...@@ -10,6 +10,17 @@ class AccessAuthAPI extends APIBase { ...@@ -10,6 +10,17 @@ class AccessAuthAPI extends APIBase {
this.aliclient = system.getObject("util.aliyunClient"); this.aliclient = system.getObject("util.aliyunClient");
this.utilsTmAliyunSve = system.getObject("service.utilsSve.utilsTmAliyunSve"); this.utilsTmAliyunSve = system.getObject("service.utilsSve.utilsTmAliyunSve");
this.utilsTmOrderCallService = system.getObject("service.utilsSve.utilsTmOrderCallSve"); this.utilsTmOrderCallService = system.getObject("service.utilsSve.utilsTmOrderCallSve");
this.utilsNeedSve = system.getObject("service.utilsSve.utilsNeedSve");
}
async QueryTradeIntentionUserList(pobj, qobj, req) {
pobj.appInfo={uapp_id:22}
let endtime = Date.now();
let starttime = Date.now() - 30 * 60 * 1000;//30分钟(毫秒)
pobj.actionBody = {
Begin: starttime,
End: endtime
};
return await this.utilsNeedSve.queryTradeIntentionUserList(pobj);
} }
async taskAliIcapi() { async taskAliIcapi() {
var rtn = await this.gatewaypushlogSve.taskAliIcapi(); var rtn = await this.gatewaypushlogSve.taskAliIcapi();
......
...@@ -112,12 +112,21 @@ class ToolService extends AppServiceBase { ...@@ -112,12 +112,21 @@ class ToolService extends AppServiceBase {
return system.getResultSuccess(plaintext); return system.getResultSuccess(plaintext);
} }
//智能推荐、犬类保护获取尼斯分类 //智能推荐
async getNclByCode(pobj,req){ async getNclByCode(pobj,req){
var reqUrl = settings.centerOrderUrl() + "action/tmOrder/springBoard"; var reqUrl = settings.centerOrderUrl() + "action/tmOrder/springBoard";
var result = await this.restPostUrl(pobj, reqUrl); var result = await this.restPostUrl(pobj, reqUrl);
return result; return result;
} }
//智能推荐
async getAllNcl(pobj,req){
var reqUrl = settings.centerOrderUrl() + "action/tmOrder/springBoard";
var result = await this.restPostUrl(pobj, reqUrl);
return result;
}
} }
module.exports = ToolService; module.exports = ToolService;
...@@ -54,7 +54,7 @@ class UtilsNeedService extends AppServiceBase { ...@@ -54,7 +54,7 @@ class UtilsNeedService extends AppServiceBase {
} }
if (pobj.actionBody.description.indexOf("备#") < 0) { if (pobj.actionBody.description && pobj.actionBody.description.indexOf("备#") < 0) {
pobj.actionBody.level = "A"; pobj.actionBody.level = "A";
} else { } else {
var levelurl = "http://106.13.228.212:8000/recProbability"; var levelurl = "http://106.13.228.212:8000/recProbability";
...@@ -590,13 +590,17 @@ class UtilsNeedService extends AppServiceBase { ...@@ -590,13 +590,17 @@ class UtilsNeedService extends AppServiceBase {
type: "tmjy" type: "tmjy"
}; };
for (let item of result.data) { for (let item of result.data) {
if (item.Type == 1 && item.RegisterNumber) {
pobj.actionBody.intentionBizId = item.BizId; pobj.actionBody.intentionBizId = item.BizId;
pobj.actionBody.mobile = item.Mobile ? item.Mobile : ""; pobj.actionBody.mobile = item.Mobile ? item.Mobile : "";
pobj.actionBody.Area = item.Area
pobj.actionBody.userName = item.UserName ? item.UserName : ""; pobj.actionBody.userName = item.UserName ? item.UserName : "";
pobj.actionBody.description = item.RegisterNumber
pobj.notes = `${item.RegisterNumber ? "RegisterNumber:" + item.RegisterNumber : ""}${item.Classification ? "Classification:" + item.Classification : ""}`; pobj.notes = `${item.RegisterNumber ? "RegisterNumber:" + item.RegisterNumber : ""}${item.Classification ? "Classification:" + item.Classification : ""}`;
let res = await this.submitNeed(JSON.parse(JSON.stringify(pobj)), { intentionBizId: item.BizId }); let res = await this.submitNeed(JSON.parse(JSON.stringify(pobj)), { intentionBizId: item.BizId });
console.log(res) console.log(res)
} }
}
return system.getResultSuccess(); return system.getResultSuccess();
} else { } else {
return system.getResultFail(result.status, result.msg); return system.getResultFail(result.status, result.msg);
......
...@@ -898,7 +898,7 @@ class UtilsOrderService extends AppServiceBase { ...@@ -898,7 +898,7 @@ class UtilsOrderService extends AppServiceBase {
this.logCtl.info({ this.logCtl.info({
appid: appInfoRt.data.uappId, appid: appInfoRt.data.uappId,
appkey: "", appkey: "",
op: "service/impl/utilsSve/utilsOrderSve.js/aliPayNotify", op: "service/impl/utilsSve/utilsOrderSve.js/channelPayNotify",
content: "参数=" + JSON.stringify(params), content: "参数=" + JSON.stringify(params),
clientIp: params.client_ip || "", clientIp: params.client_ip || "",
optitle: "阿里回调操作频繁---太频繁了,太频繁了" optitle: "阿里回调操作频繁---太频繁了,太频繁了"
...@@ -946,7 +946,7 @@ class UtilsOrderService extends AppServiceBase { ...@@ -946,7 +946,7 @@ class UtilsOrderService extends AppServiceBase {
await this.cacheManager["TlPayLocker"].release(params.orderNo); await this.cacheManager["TlPayLocker"].release(params.orderNo);
this.logCtl.error({ this.logCtl.error({
optitle: "回调处理订单---error异常", optitle: "回调处理订单---error异常",
op: "center-app/app/base/service/impl/utilsSve/utilstlbankSve.js/opBackNotify", op: "center-app/app/base/service/impl/utilsSve/utilsOrderSve.js/channelPayNotify",
content: "参数=" + JSON.stringify(params) + ",error:" + e.stack, content: "参数=" + JSON.stringify(params) + ",error:" + e.stack,
clientIp: client_ip || "" clientIp: client_ip || ""
}); });
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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