File tree Expand file tree Collapse file tree 6 files changed +14
-6
lines changed
main/java/me/chanjar/weixin/mp
test/java/me/chanjar/weixin/mp/api/impl Expand file tree Collapse file tree 6 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ private WxMpCardCreateResult validCheck(WxMpMemberCardCreateMessage createMessag
188
188
dateInfoType .getDescription ()));
189
189
}
190
190
191
- if (!baseInfo .isUseAllLocations () && StringUtils . isBlank ( baseInfo .getLocationIdList ())) {
191
+ if (!baseInfo .isUseAllLocations () && baseInfo .getLocationIdList (). isEmpty ( )) {
192
192
return WxMpCardCreateResult .failure ("会员卡基本信息的门店使用范围选择指定门店,门店列表:locationIdList不能为空" );
193
193
}
194
194
Original file line number Diff line number Diff line change 1
1
package me .chanjar .weixin .mp .bean .card ;
2
2
3
3
import java .io .Serializable ;
4
+ import java .util .List ;
4
5
5
6
import com .google .gson .annotations .SerializedName ;
6
7
import lombok .Data ;
@@ -104,7 +105,7 @@ public class BaseInfo implements Serializable {
104
105
* 门店位置ID,调用 POI门店管理接口 获取门店位置ID.
105
106
*/
106
107
@ SerializedName ("location_id_list" )
107
- private String locationIdList ;
108
+ private List < String > locationIdList ;
108
109
109
110
/**
110
111
* 会员卡是否支持全部门店,填写后商户门店更新时会自动同步至卡券.
Original file line number Diff line number Diff line change 5
5
import me .chanjar .weixin .mp .util .json .WxMpGsonBuilder ;
6
6
7
7
import java .io .Serializable ;
8
+ import java .util .List ;
8
9
9
10
/**
10
11
* 微信会员卡基本信息更新
@@ -54,7 +55,7 @@ public class BaseInfoUpdate implements Serializable {
54
55
* 门店位置ID,调用 POI门店管理接口 获取门店位置ID.
55
56
*/
56
57
@ SerializedName ("location_id_list" )
57
- private String locationIdList ;
58
+ private List < String > locationIdList ;
58
59
59
60
/**
60
61
* 会员卡是否支持全部门店,填写后商户门店更新时会自动同步至卡券.
Original file line number Diff line number Diff line change @@ -14,7 +14,11 @@ public enum CardWechatFieldType {
14
14
USER_FORM_INFO_FLAG_IDCARD ("身份证" ),
15
15
USER_FORM_INFO_FLAG_EMAIL ("邮箱" ),
16
16
USER_FORM_INFO_FLAG_LOCATION ("详细地址" ),
17
- USER_FORM_INFO_FLAG_EDUCATION_BACKGRO ("教育背景" ),
17
+
18
+ /**
19
+ * 原文档为 USER_FORM_INFO_FLAG_EDUCATION_BACKGRO, 测试不通过,可能是文档错误
20
+ */
21
+ USER_FORM_INFO_FLAG_EDUCATION_BACKGROUND ("教育背景" ),
18
22
USER_FORM_INFO_FLAG_INDUSTRY ("行业" ),
19
23
USER_FORM_INFO_FLAG_INCOME ("收入" ),
20
24
USER_FORM_INFO_FLAG_HABIT ("兴趣爱好" );
Original file line number Diff line number Diff line change @@ -108,7 +108,8 @@ public class WxDataCubeArticleResult extends WxDataCubeBaseResult {
108
108
109
109
/**
110
110
* user_source
111
- * 在获取图文阅读分时数据时才有该字段,代表用户从哪里进入来阅读该图文。0:会话;1.好友;2.朋友圈;3.腾讯微博;4.历史消息页;5.其他
111
+ * 在获取图文统计数据、图文阅读分时数据时才有该字段,代表用户从哪里进入来阅读该图文。
112
+ * 99999999.全部;0:会话;1.好友;2.朋友圈;3.腾讯微博;4.历史消息页;5.其他;6.看一看;7.搜一搜;
112
113
*/
113
114
@ SerializedName ("user_source" )
114
115
private Integer userSource ;
Original file line number Diff line number Diff line change 1
1
package me .chanjar .weixin .mp .api .impl ;
2
2
3
+ import com .google .common .collect .Lists ;
3
4
import com .google .inject .Inject ;
4
5
import me .chanjar .weixin .common .bean .WxCardApiSignature ;
5
6
import me .chanjar .weixin .common .error .WxErrorException ;
@@ -134,7 +135,7 @@ public void testCreateGrouponCard() throws WxErrorException {
134
135
base .setCustomUrlSubTitle ("副标题tip" );
135
136
base .setPromotionUrlName ("更多优惠" );
136
137
base .setPromotionUrl ("http://www.qq.com" );
137
- base .setLocationIdList ("1234" );
138
+ base .setLocationIdList (Lists . newArrayList ( "1234" ) );
138
139
139
140
//团购券
140
141
WxMpCardCreateRequest grouponMessage = new WxMpCardCreateRequest ();
You can’t perform that action at this time.
0 commit comments