diff --git a/B3WeChat/Rpcs/WeChatUserRpc.cs b/B3WeChat/Rpcs/WeChatUserRpc.cs index 9829b3b..d30e4d1 100644 --- a/B3WeChat/Rpcs/WeChatUserRpc.cs +++ b/B3WeChat/Rpcs/WeChatUserRpc.cs @@ -79,6 +79,8 @@ namespace BWP.B3WeChat.Rpcs { var query = new DQueryDom(new JoinAlias(typeof(CustomerUser))); query.Where.Conditions.Add(DQCondition.EQ("OpenID", WeChatUserContext.Current.OpenID)); + query.Where.Conditions.Add(DQCondition.InEQ("CustomerCode", "0")); + query.Where.Conditions.Add(DQCondition.Not(DQCondition.Like("CustomerCode", "%TEST"))); query.Columns.Add(DQSelectColumn.Field("CustomerCode")); query.Distinct = true; return query.EExecuteList().ToArray();