微信店铺重发优化功能
This commit is contained in:
1 parent
16342df70a
commit
daa7f733fc
28 files changed
+3675
-986
No files matched your search
@@ -16,7 +16,7 @@ namespace KJD_Web.BLL.WXXD
|
||||
{
|
||||
public class WXUserManage
|
||||
{
|
||||
public static bool GetSign(string signData)
|
||||
public static bool GetSign(string signData, bool isUserLogin = false)
|
||||
{
|
||||
if (string.IsNullOrEmpty(signData)) { return false; }
|
||||
|
||||
@@ -25,6 +25,17 @@ namespace KJD_Web.BLL.WXXD
|
||||
string time1 = RegexUtils.GetStringQuery(ref signData, "code");
|
||||
if (time1 != EncrypUtil.Encryption(time))
|
||||
return false;
|
||||
|
||||
if (!isUserLogin)
|
||||
{
|
||||
var user_name = HtmlUtils.UrlDecodeUtf8(RegexUtils.GetStringQuery(ref signData, "user_name"))?.ParseToString();
|
||||
if (user_name.IsNullOrEmpty())
|
||||
{
|
||||
//return "{\"code\":500,\"msg\":\"请输入用户名\"}";
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -32,7 +43,7 @@ namespace KJD_Web.BLL.WXXD
|
||||
{
|
||||
if (!string.IsNullOrEmpty(inputData))
|
||||
{
|
||||
if (!GetSign(inputData))
|
||||
if (!GetSign(inputData, true))
|
||||
return "{\"code\":999,\"msg\":\"校验失败\"}";
|
||||
|
||||
var mobile = RegexUtils.GetStringQuery(ref inputData, "mobile")?.Replace("'", "\\'");
|
||||
|
||||
Reference in new issue
Block a user