From 65381e8c489ae66eb04c75bb204869ad099a2aff Mon Sep 17 00:00:00 2001 From: "[zhengchao]" <[623591417@qq.com]> Date: Wed, 28 Sep 2016 14:14:28 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96oppenid=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- B3WeChat/Rpcs/ClientRpc.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/B3WeChat/Rpcs/ClientRpc.cs b/B3WeChat/Rpcs/ClientRpc.cs index eee813b..a2c32ef 100644 --- a/B3WeChat/Rpcs/ClientRpc.cs +++ b/B3WeChat/Rpcs/ClientRpc.cs @@ -49,10 +49,10 @@ namespace BWP.B3WeChat.Rpcs static string GetOpenId(string username) { string customer = GetDeviceNumber(); - var query = new DQueryDom(new JoinAlias(typeof(QRCode))); - query.Columns.Add(DQSelectColumn.Field("OppenId")); - query.Where.Conditions.Add(DQCondition.EQ("Customer", customer)); - query.Where.Conditions.Add(DQCondition.EQ("UserId", username)); + var query = new DQueryDom(new JoinAlias(typeof(CustomerUser))); + query.Columns.Add(DQSelectColumn.Field("OpenID")); + query.Where.Conditions.Add(DQCondition.EQ("CustomerCode", customer)); + query.Where.Conditions.Add(DQCondition.EQ("CustomerUsername", username)); query.Range = SelectRange.Top(1); var OppenId = query.EExecuteScalar(); if (string.IsNullOrEmpty(OppenId))