Beispiel #1
0
        //MD5加密下单
        public string lumamamd5(apply_codemodel m)
        {
            string s      = m.num + m.password + m.serialNo + m.settlePrice + m.supplierGoodsId + m.timestamp + m.uid + m.visitTime;
            string s_temp = EncryptionHelper.ToMD5ToLower(s, "UTF-8");

            return(s_temp);
        }
Beispiel #2
0
        public backRefund testsend(apply_codemodel requestData)
        {
            //string url = "http://localhost:14395/Meituan-jk/ordercreate.aspx";

            string url = "http://localhost:14395/lvmama/apply_code.aspx";

            backRefund result = new backRefund
            {
                IsSuccess = false,
            };

            try
            {
                var responseStr = DoRequest(url, JsonConvert.SerializeObject(requestData));
                Label1.Text = responseStr;
                if (string.IsNullOrEmpty(responseStr))
                {
                    result.msg = "返回数据为空";
                }
                else
                {
                    backRefund responseBody = (backRefund)JsonConvert.DeserializeObject(responseStr, typeof(backRefund));
                    if (responseBody.status == "0")
                    {
                        result.IsSuccess = true;
                        result.msg       = JsonConvert.SerializeObject(responseBody);
                    }
                    else
                    {
                        result.IsSuccess = false;
                        result.msg       = responseBody.msg;
                    }
                }
            }
            catch (Exception ex)
            {
                result.msg = "异常" + ex.Message;
            }


            return(result);
        }