public string buildCookie(string platform, YSDKMethod ysdkMethod) { string mothed = getMethodString(ysdkMethod); if (platform == "1") { return(string.Format("session_id=openid;session_type=kp_actoken;org_loc={0}", mothed)); } else { return(string.Format("session_id=hy_gameid;session_type=wc_actoken;org_loc={0}", mothed)); } }
public string buildURL(YSDKMethod ysdkMethod) { sortKeyValue(); string mothed = getMethodString(ysdkMethod); string url = getURL(mothed); string sig = getSignString(mothed); string valueString = getValueString(false); StringBuilder sb = new StringBuilder(); sb.AppendFormat("{0}?{1}", url, valueString); sb.AppendFormat("&{0}", sig); return(sb.ToString()); }
static string getMethodString(YSDKMethod method) { return(Methods[method]); }