Commit 9dec43ce by 王欣伟

修正设备产品列表信息获取

1 parent d9209512
......@@ -19,4 +19,26 @@ public class Constants {
public final static int REDIS_CACHE_TIME = 3; //redis缓存时间
/**
* 平台key定义
*/
public static class PlatformKey {
/**
* 涂鸦的平台key
*/
public final static String tuya = "access_platform_didihu";
/**
* 嘀嘀虎的平台key
*/
public final static String didihu = "access_platform_didihu";
/**
* 绿米的平台key
*/
public final static String lvmi = "access_platform_lvmi";
}
}
......@@ -3,6 +3,7 @@ package com.glsx.smart.service.impl;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.github.pagehelper.PageInfo;
import com.glsx.smart.constant.Constants;
import com.glsx.smart.dao.entity.SmartDeviceOrder;
import com.glsx.smart.dao.entity.SmartProduct;
import com.glsx.smart.dao.entity.SmartSysCode;
......@@ -257,7 +258,7 @@ public class SmartProductServiceImpl extends BaseService implements SmartProduct
//productInfo.put("id", product.getId());
productInfo.put("name", product.getProductName());
productInfo.put("icon", product.getIconUrl());
productInfo.put("typeId", product.getNetworkKey());
productInfo.put("typeId", (product.getPlatformKey().equals(Constants.PlatformKey.didihu))?product.getPlatformProductId():product.getNetworkKey());
productInfo.put("shopProductId", product.getShopProductId());
productInfoArray.add(productInfo);
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!