/// <summary> /// 创建hash字符串 /// </summary> /// <param name="ticket"></param> /// <param name="timestamp"></param> /// <param name="nonce"></param> /// <param name="url"></param> /// <returns></returns> public string CreateShaString(string ticket, string timestamp, string nonce, string url) { var string1 = "jsapi_ticket=" + ticket + "&noncestr=" + nonce + "×tamp=" + timestamp + "&url=" + url; return(HashTool.ComputeSha256Hash(string1)); }