|
@@ -46,7 +46,7 @@ namespace MySystem.Areas.Api.Controllers
|
|
|
JsonData data = JsonMapper.ToObject(value);
|
|
|
string AppId = data["appId"].ToString(); //小程序AppId
|
|
|
string Code = data["code"].ToString(); //加密Code
|
|
|
- string Data = dbconn.Decrypt3DES(Code);
|
|
|
+ // string Data = AppDesDecrypt(Code, "fghfghghjghjghfghjfgfgh", "12345678");
|
|
|
Dictionary<string, object> Obj = new Dictionary<string, object>();
|
|
|
Obj.Add("appToken", "77V3ULHBCE5PV9KXPWL5P7346HJPHUR3"); //小程序获取用户信息的Token
|
|
|
Obj.Add("openId", "wnjasnjdjjghjhjn"); //小程序openId
|
|
@@ -79,7 +79,7 @@ namespace MySystem.Areas.Api.Controllers
|
|
|
|
|
|
#region 3DES解密
|
|
|
|
|
|
- private string DesDecrypt(string encryptedText, string key, string iv)
|
|
|
+ private string AppDesDecrypt(string encryptedText, string key, string iv)
|
|
|
{
|
|
|
byte[] keyArray;
|
|
|
byte[] ivArray;
|