|
|
@@ -46,7 +46,7 @@ public class WxScoreRules extends BaseTenantEntity { |
|
|
"[" + |
|
|
"[" + |
|
|
"{\"id\":1,\"limit\":0,\"step\":1,\"score\":0 ,\"desc\":\"每日登陆\"}," + |
|
|
"{\"id\":1,\"limit\":0,\"step\":1,\"score\":0 ,\"desc\":\"每日登陆\"}," + |
|
|
"{\"id\":2,\"childs\":[" + |
|
|
"{\"id\":2,\"childs\":[" + |
|
|
" {\"businessId\":"+Constant.default_business+",\"limit\":"+DEFAULT_LIMIT+",\"step\":"+DEFAULT_STEP+",\"score\":"+DEFAULT_SCORE+" ,\"desc\":\"线上交易1元\"}" + |
|
|
|
|
|
|
|
|
" {\"businessId\":"+Constant.default_business+",\"title\":\""+Constant.default_business_name+"\",\"limit\":"+DEFAULT_LIMIT+",\"step\":"+DEFAULT_STEP+",\"score\":"+DEFAULT_SCORE+" ,\"desc\":\"线上交易1元\"}" + |
|
|
"]}," + |
|
|
"]}," + |
|
|
"{\"id\":3,\"limit\":1,\"step\":1,\"score\":0,\"desc\":\"绑定车牌1个\"}," + |
|
|
"{\"id\":3,\"limit\":1,\"step\":1,\"score\":0,\"desc\":\"绑定车牌1个\"}," + |
|
|
"{\"id\":6,\"limit\":1,\"step\":1,\"score\":0,\"desc\":\"授权手机号\"}," + |
|
|
"{\"id\":6,\"limit\":1,\"step\":1,\"score\":0,\"desc\":\"授权手机号\"}," + |
|
|
@@ -58,7 +58,7 @@ public class WxScoreRules extends BaseTenantEntity { |
|
|
"[" + |
|
|
"[" + |
|
|
// "{\"id\":1,\"limit\":0,\"step\":1,\"score\":0 ,\"desc\":\"每日登陆\"}," + |
|
|
// "{\"id\":1,\"limit\":0,\"step\":1,\"score\":0 ,\"desc\":\"每日登陆\"}," + |
|
|
"{\"id\":2,\"childs\":[" + |
|
|
"{\"id\":2,\"childs\":[" + |
|
|
" {\"businessId\":"+Constant.default_business+",\"limit\":"+DEFAULT_LIMIT+",\"step\":"+DEFAULT_STEP+",\"score\":"+DEFAULT_SCORE+" ,\"desc\":\"线上交易1元\"}" + |
|
|
|
|
|
|
|
|
" {\"businessId\":"+Constant.default_business+",\"title\":\""+Constant.default_business_name+"\",\"limit\":"+DEFAULT_LIMIT+",\"step\":"+DEFAULT_STEP+",\"score\":"+DEFAULT_SCORE+" ,\"desc\":\"线上交易1元\"}" + |
|
|
"]}," + |
|
|
"]}," + |
|
|
"{\"id\":3,\"limit\":1,\"step\":1,\"score\":0,\"desc\":\"绑定车牌1个\"}," + |
|
|
"{\"id\":3,\"limit\":1,\"step\":1,\"score\":0,\"desc\":\"绑定车牌1个\"}," + |
|
|
"{\"id\":6,\"limit\":1,\"step\":1,\"score\":0,\"desc\":\"授权手机号\"}," + |
|
|
"{\"id\":6,\"limit\":1,\"step\":1,\"score\":0,\"desc\":\"授权手机号\"}," + |
|
|
@@ -159,8 +159,8 @@ public class WxScoreRules extends BaseTenantEntity { |
|
|
return null; |
|
|
return null; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static JSONObject createBusinessDefaultJson(Integer businessId) { |
|
|
|
|
|
String json = "{\"businessId\":"+businessId+",\"limit\":"+DEFAULT_LIMIT+",\"step\":"+DEFAULT_STEP+",\"score\":"+DEFAULT_SCORE+" ,\"desc\":\"线上交易1元\"}" ; |
|
|
|
|
|
|
|
|
public static JSONObject createBusinessDefaultJson(Integer businessId,String businessNme) { |
|
|
|
|
|
String json = "{\"businessId\":"+businessId+",\"title\":\""+businessNme+"\",\"limit\":"+DEFAULT_LIMIT+",\"step\":"+DEFAULT_STEP+",\"score\":"+DEFAULT_SCORE+" ,\"desc\":\"线上交易1元\"}" ; |
|
|
return JSONObject.parseObject(json); |
|
|
return JSONObject.parseObject(json); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|