This commit is contained in:
parent
65a9f4859e
commit
ab73cf02a4
|
@ -1390,7 +1390,9 @@ namespace PCRobot.PCWechat.Routine
|
||||||
|
|
||||||
//{"data":{"appIconUrl":"","appName":"","baseResponse":{"errMsg":{"string":""},"ret":0},"code":"043ahM0w3h4kQY252N1w3zkH0z2ahM0C","jsApiBaseResponse":{"errcode":0,"errmsg":"ok"},"liftSpan":0,"openId":"","sessionKey":"","sessionTicket":"","signature":"","state":""},"type":11136}
|
//{"data":{"appIconUrl":"","appName":"","baseResponse":{"errMsg":{"string":""},"ret":0},"code":"043ahM0w3h4kQY252N1w3zkH0z2ahM0C","jsApiBaseResponse":{"errcode":0,"errmsg":"ok"},"liftSpan":0,"openId":"","sessionKey":"","sessionTicket":"","signature":"","state":""},"type":11136}
|
||||||
|
|
||||||
var appid = data["appid"].ToString();
|
//{"data":{"appIconUrl":"","appName":"","baseResponse":{"errMsg":{"string":""},"ret":0},"code":"033s8p0007xbLO1XLs3002qRRv0s8p05","jsApiBaseResponse":{"errcode":0,"errmsg":"ok"},"liftSpan":0,"openId":"","sessionKey":"","sessionTicket":"","signature":"","state":""},"type":11136}
|
||||||
|
|
||||||
|
var appid = data["appid"]?.ToString() ?? string.Empty;
|
||||||
var code = data["code"].ToString();
|
var code = data["code"].ToString();
|
||||||
|
|
||||||
if (user.AutoAuthLoginMiNiApps.ContainsKey(appid))
|
if (user.AutoAuthLoginMiNiApps.ContainsKey(appid))
|
||||||
|
|
|
@ -1197,6 +1197,12 @@ namespace PCRobot.PCWechat.Routine
|
||||||
{
|
{
|
||||||
return User.AutoAuthLoginMiNiApps[appid];
|
return User.AutoAuthLoginMiNiApps[appid];
|
||||||
}
|
}
|
||||||
|
else if (User.AutoAuthLoginMiNiApps.ContainsKey(string.Empty))
|
||||||
|
{
|
||||||
|
var code = User.AutoAuthLoginMiNiApps[string.Empty];
|
||||||
|
User.AutoAuthLoginMiNiApps.Remove(string.Empty);
|
||||||
|
return code;
|
||||||
|
}
|
||||||
Thread.Sleep(400);
|
Thread.Sleep(400);
|
||||||
} while (end_time > DateTime.Now);
|
} while (end_time > DateTime.Now);
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -631,12 +631,10 @@ namespace TBRebate
|
||||||
|
|
||||||
// Console.WriteLine(url);
|
// Console.WriteLine(url);
|
||||||
//}
|
//}
|
||||||
|
|
||||||
//return;
|
//return;
|
||||||
|
|
||||||
//var hook = sender as WXClientImpl_HOOK;
|
//var hook = sender as WXClientImpl_HOOK;
|
||||||
//var ss = hook.AutoAuthMiniAPPLogin("wxa918198f16869201");
|
//var ss = hook.AutoAuthMiniAPPLogin("wx84c80fde68ef77b6");
|
||||||
|
|
||||||
//return;
|
//return;
|
||||||
|
|
||||||
// var sss = @"<TimelineObject>
|
// var sss = @"<TimelineObject>
|
||||||
|
|
|
@ -394,7 +394,7 @@ namespace TBRebate.Uses
|
||||||
if (pids == null || pids.Length == 0) throw new Exception("推广位数据异常,请重新设置推广位");
|
if (pids == null || pids.Length == 0) throw new Exception("推广位数据异常,请重新设置推广位");
|
||||||
|
|
||||||
var tb_cps = CpsClient.Members.FirstOrDefault(f => f.cpstype == CpsType.阿里妈妈 && f.username == pids[1]);
|
var tb_cps = CpsClient.Members.FirstOrDefault(f => f.cpstype == CpsType.阿里妈妈 && f.username == pids[1]);
|
||||||
if (tb_cps == null) throw new Exception("@阿里妈妈推广位异常,请检测后重试!");
|
if (tb_cps == null) throw new Exception($"@阿里妈妈推广位异常,请检测后重试!,{pid}");
|
||||||
|
|
||||||
//关键词/标题
|
//关键词/标题
|
||||||
var keyword = string.Empty;
|
var keyword = string.Empty;
|
||||||
|
|
Loading…
Reference in New Issue