/// <summary> /// 万通签到 /// </summary> /// <returns></returns> public static Boolean WantongSign() { try { //签到 SignParam param = WantongBLL.sign(); PayAccess access = new PayAccess(); SignResultInfo signResultInfo = access.SignAcc(param); Dictionary <string, string> signResult = signResultInfo.data; if (signResult == null) { return(false); } log.Write("万通签到返回码:" + signResult["39"]); SysStateParam.wtSignInfo = "返回码:" + signResult["39"]; //键盘安装工作秘钥 string _62 = signResult["62"]; if (signResult["39"].Trim().Equals("00")) { //获取44域中的密文密钥 string mackeyExpress = _62.Substring(_62.Length - 40, 40); string pinKeyExpress = _62.Substring(0, 40); bool ret = Sign(1, mackeyExpress, pinKeyExpress); return(ret); } return(false); } catch { return(false); } }