Commit 859c4dce by 庄冰

policy

parent 478016ff
...@@ -23,11 +23,11 @@ class APIBase { ...@@ -23,11 +23,11 @@ class APIBase {
req.requestId = this.getUUID(); req.requestId = this.getUUID();
try { try {
//验证accesskey或验签 //验证accesskey或验签
// var isPassResult = await this.checkAcck(gname, methodname, pobj, query, req); var isPassResult = await this.checkAcck(gname, methodname, pobj, query, req);
// if (isPassResult.status != 0) { if (isPassResult.status != 0) {
// isPassResult.requestId = ""; isPassResult.requestId = "";
// return isPassResult; return isPassResult;
// } }
var rtn = await this[methodname](pobj, query, req); var rtn = await this[methodname](pobj, query, req);
this.logCtl.createDb({ this.logCtl.createDb({
appid: req.app.id, appid: req.app.id,
......
...@@ -8,8 +8,8 @@ class PolicyinfoService extends ServiceBase { ...@@ -8,8 +8,8 @@ class PolicyinfoService extends ServiceBase {
//政策检索 //政策检索
async policyQuery(pobj){ async policyQuery(pobj){
var obj = pobj.actionBody; var obj = pobj.actionBody;
// var app = pobj.appInfo; var app = pobj.appInfo;
var paramObj={}; var paramObj={uapp_id:app.uapp_id};
var attributes =["policyType","policyTypeName","policyDate","policyContent","policyCity","policyProvince", var attributes =["policyType","policyTypeName","policyDate","policyContent","policyCity","policyProvince",
"policyLinkUrl","policySource","policyName","policyNo"]; "policyLinkUrl","policySource","policyName","policyNo"];
if(obj){ if(obj){
......
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