|
@@ -56,7 +56,19 @@ namespace MySystem
|
|
|
if (BrandId == 1)
|
|
|
{
|
|
|
BoxRequestUrl = HaodaParam.BoxRequestUrl;
|
|
|
- request.oprInvitedCode = "T1715836";
|
|
|
+ string oprInvitedCode = "";
|
|
|
+ if (BrandId == 1)
|
|
|
+ {
|
|
|
+ if(string.IsNullOrEmpty(RedisDbconn.Instance.Get<string>("AgentInvitedCode:" + AgentTag)))
|
|
|
+ {
|
|
|
+ oprInvitedCode = RedisDbconn.Instance.Get<string>("AgentInvitedCode:1");
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ oprInvitedCode = RedisDbconn.Instance.Get<string>("AgentInvitedCode:" + AgentTag);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ request.oprInvitedCode = oprInvitedCode;
|
|
|
}
|
|
|
|
|
|
// request.brh = BrhCode;
|
|
@@ -741,8 +753,8 @@ namespace MySystem
|
|
|
{
|
|
|
if(string.IsNullOrEmpty(RedisDbconn.Instance.Get<string>("AgentAppId:" + Agent)))
|
|
|
{
|
|
|
- BoxAppId = HaodaParam.BoxAppId;
|
|
|
- BoxAppSecret = HaodaParam.BoxAppSecret;
|
|
|
+ BoxAppId = RedisDbconn.Instance.Get<string>("AgentAppId:1");
|
|
|
+ BoxAppSecret = RedisDbconn.Instance.Get<string>("AgentAppSecret:1");
|
|
|
}
|
|
|
else
|
|
|
{
|