|
|
@ -99,9 +99,8 @@ namespace BWP.B3WeChat.Rpcs |
|
|
return InOutMessageUtil.GetJsApiSignature(noncestr, timestamp, url); |
|
|
return InOutMessageUtil.GetJsApiSignature(noncestr, timestamp, url); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Rpc] |
|
|
[Rpc] |
|
|
public static void ScanLoginConfirm(long requestID) |
|
|
|
|
|
|
|
|
public static string QueryScanLoginInfo(long requestID) |
|
|
{ |
|
|
{ |
|
|
var request = WebBLUtil.GetSingleDmo<ScanLoginRequest>(new Tuple<string, object>("ID", requestID)); |
|
|
var request = WebBLUtil.GetSingleDmo<ScanLoginRequest>(new Tuple<string, object>("ID", requestID)); |
|
|
if (request == null) |
|
|
if (request == null) |
|
|
@ -109,7 +108,8 @@ namespace BWP.B3WeChat.Rpcs |
|
|
throw new Exception("不存在的扫码登录号"); |
|
|
throw new Exception("不存在的扫码登录号"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if(request.Confirmed){ |
|
|
|
|
|
|
|
|
if (request.Confirmed) |
|
|
|
|
|
{ |
|
|
throw new Exception("已经确认过了"); |
|
|
throw new Exception("已经确认过了"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -124,6 +124,25 @@ namespace BWP.B3WeChat.Rpcs |
|
|
throw new Exception("未能发现关联的用户"); |
|
|
throw new Exception("未能发现关联的用户"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
return username; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[Rpc] |
|
|
|
|
|
public static void ScanLoginConfirm(long requestID) |
|
|
|
|
|
{ |
|
|
|
|
|
var request = WebBLUtil.GetSingleDmo<ScanLoginRequest>(new Tuple<string, object>("ID", requestID)); |
|
|
|
|
|
if (request == null) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new Exception("不存在的扫码登录号"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(request.Confirmed){ |
|
|
|
|
|
throw new Exception("已经确认过了"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var username = QueryScanLoginInfo(requestID); |
|
|
|
|
|
|
|
|
request.Confirmed = true; |
|
|
request.Confirmed = true; |
|
|
request.CustomerUsername = username; |
|
|
request.CustomerUsername = username; |
|
|
|
|
|
|
|
|
|