Commit e0b38586 by 宋毅

tj

parent db369724
...@@ -31,6 +31,9 @@ class OpProductAPI extends APIBase { ...@@ -31,6 +31,9 @@ class OpProductAPI extends APIBase {
case "getProductInterface"://获取产品接口信息 case "getProductInterface"://获取产品接口信息
opResult = await this.productSve.getProductInterface(pobj, pobj.actionBody); opResult = await this.productSve.getProductInterface(pobj, pobj.actionBody);
break; break;
case "getAppInterface"://获取应用接口信息
opResult = await this.productSve.getAppInterface(pobj, pobj.actionBody);
break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
break; break;
......
...@@ -53,8 +53,8 @@ class ProductService extends ServiceBase { ...@@ -53,8 +53,8 @@ class ProductService extends ServiceBase {
return system.getResultSuccess(list); return system.getResultSuccess(list);
} }
/** /**
* 获取产品接口信息 * 获取应用接口信息
* @param {*} actionBody productId产品id * @param {*} actionBody
*/ */
async getAppInterface(pobj, actionBody) { async getAppInterface(pobj, actionBody) {
var sql = "select * from v_op_interface where is_enabled=1 and product_id is null and uapp_id=" + pobj.appInfo.uapp_id; var sql = "select * from v_op_interface where is_enabled=1 and product_id is null and uapp_id=" + pobj.appInfo.uapp_id;
......
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