varhttpfunc=require('topsin.httpfunc');varREQ=httpfunc.argv().request;varRES=httpfunc.argv().response;varSinEror=require('topsin.error');varresult=new(require('topsin.responsedata'))();varDB=require('topsin.database');varDBNAME=REQ.pathCapture('DBNAME');varCrypto=require('topsin.crypto');var_=require('lodash');try{if(REQ.method()!="POST")throw"only support POST method!";varbody=JSON.parse(REQ.body());varfunc=_.get(body,'func');varparas=_.get(body,'paras');if(!_.isString(func))throw"func must be a string!";if(!_.isArray(paras))throw"paras must be an array!";