Commit 5003241d by 陶光胜

二维码

parent ecdb59c8
......@@ -125,8 +125,12 @@ public class CustomGuideApiServiceImpl implements CustomGuideApiService {
String title = guide.getTitle();
Map<String, Object> listMap = new HashMap<String, Object>();
JSONObject jsonObject = JSON.parseObject(guide.getIcon());
String selectIconPath = iconPath + jsonObject.getString("type")+ jsonObject.getString("name")+"-active.png";
String unIconPath = iconPath + jsonObject.getString("type")+ jsonObject.getString("name")+".png";
String selectIconPath = "";
String unIconPath = "";
if(jsonObject != null){
selectIconPath = iconPath + jsonObject.getString("type")+ jsonObject.getString("name")+"-active.png";
unIconPath = iconPath + jsonObject.getString("type")+ jsonObject.getString("name")+".png";
}
listMap.put("selectedIconPath", selectIconPath);
listMap.put("iconPath", unIconPath);
listMap.put("pagePath", guide.getCustomPage());
......
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