Commit 89219d82 by 庄冰

collect logo

parent fc1ebeca
...@@ -5,6 +5,7 @@ class LogoOrderAPI extends APIBase { ...@@ -5,6 +5,7 @@ class LogoOrderAPI extends APIBase {
constructor() { constructor() {
super(); super();
this.orderinfoSve = system.getObject("service.dbcorder.orderinfoSve"); this.orderinfoSve = system.getObject("service.dbcorder.orderinfoSve");
this.logoOrderSve = system.getObject("service.dbcorder.logoOrderSve");
} }
/** /**
* 接口跳转-POST请求 * 接口跳转-POST请求
...@@ -25,11 +26,14 @@ class LogoOrderAPI extends APIBase { ...@@ -25,11 +26,14 @@ class LogoOrderAPI extends APIBase {
case "getPaidLogoListByUser"://获取已购买的logo case "getPaidLogoListByUser"://获取已购买的logo
opResult = this.orderinfoSve.getPaidLogoListByUser(pobj); opResult = this.orderinfoSve.getPaidLogoListByUser(pobj);
break; break;
case "getLogoMaterial"://下载logo素材
opResult = this.logoOrderSve.getLogoMaterial(pobj);
break;
case "getCollectibleLogoListByUser"://获取收藏的logo case "getCollectibleLogoListByUser"://获取收藏的logo
opResult = system.getResultSuccess(null, "测试成功"); opResult = this.logoOrderSve.getCollectibleLogoListByUser(pobj);
break; break;
case "collectLogo"://收藏logo case "collectLogo"://收藏logo
opResult = system.getResultSuccess(null, "测试成功"); opResult = this.logoOrderSve.collectLogo(pobj);
break; break;
default: default:
opResult = system.getResult(null, "action_type参数错误"); opResult = system.getResult(null, "action_type参数错误");
......
...@@ -324,11 +324,6 @@ class OrderInfoService extends ServiceBase { ...@@ -324,11 +324,6 @@ class OrderInfoService extends ServiceBase {
if (!actionBody.deliveryData || Object.keys(actionBody.deliveryData).length == 0) { if (!actionBody.deliveryData || Object.keys(actionBody.deliveryData).length == 0) {
return system.getResult(null, "交付数据不能为空,20135"); return system.getResult(null, "交付数据不能为空,20135");
} }
// {
// "id": 1138, //id:后续用了购买的标识,购买时需要回传
// "description": "淡蓝色象征着清新,淡雅", //描述
// "pic_url": "https://gsb-zc.oss-cn-beijing.aliyuncs.com/generator_202004270135297459.png" //图像url
// },
var deliveryData = actionBody.deliveryData; var deliveryData = actionBody.deliveryData;
if (!deliveryData.logo_id) { if (!deliveryData.logo_id) {
return system.getResult(null, "logo_Id不能为空,20150"); return system.getResult(null, "logo_Id不能为空,20150");
......
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