|
|
|
@@ -62,12 +62,14 @@ public class WxQuestionController extends BaseController { |
|
|
|
String[] arys1 = wxQuestionConfig.getQuestionList().split(","); |
|
|
|
List<Long> qs = new ArrayList<>(); |
|
|
|
for (int i = 0; i < arys1.length; i++) { |
|
|
|
qs.add(Long.parseLong(arys1[i])); |
|
|
|
if (!arys1[i].isEmpty()) |
|
|
|
qs.add(Long.parseLong(arys1[i])); |
|
|
|
} |
|
|
|
String[] arys2 = wxQuestionConfig.getCouponTypeList().split(","); |
|
|
|
List<Long> ct = new ArrayList<>(); |
|
|
|
for (int i = 0; i < arys2.length; i++) { |
|
|
|
ct.add(Long.parseLong(arys2[i])); |
|
|
|
if (!arys2[i].isEmpty()) |
|
|
|
ct.add(Long.parseLong(arys2[i])); |
|
|
|
} |
|
|
|
wxQuestionConfig.setQuestionList(JSONObject.toJSONString(qs)); |
|
|
|
wxQuestionConfig.setCouponTypeList(JSONObject.toJSONString(ct)); |
|
|
|
|