Commit 859c4dce by 庄冰

policy

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