Browse Source

修改bug

zhoufan 8 years ago
parent
commit
206dfe9c9a

+ 2 - 1
ShopMobile/Mobile/View/Pay/Alipay/return_url.aspx.cs

@@ -87,7 +87,8 @@ public partial class return_url : System.Web.UI.Page
87 87
                     }
88 88
                     else
89 89
                     {
90
-                        Response.Write("trade_status=" + Request.QueryString["trade_status"]);
90
+                        //Response.Write("trade_status=" + Request.QueryString["trade_status"]);
91
+                        Response.Redirect("/Mobile/View/Msg.html?msg=支付订单" + out_trade_no + "成功!");
91 92
                     }
92 93
 
93 94
                     //打印页面

+ 5 - 5
ShopMobile/apiclass/order.cs

@@ -428,7 +428,7 @@ namespace ShopMobile.apiclass
428 428
                 hd.BuyerDesc = od.OrderMemo;
429 429
                 hd.ReceiveAddress = od.Province + od.City + od.County + od.Address;
430 430
                 hd.ReceiveCellPhone = od.Telephone;
431
-                hd.ReceivePhone = "1234123";
431
+                hd.ReceivePhone = "";
432 432
                 hd.ReceiveName = od.Receiver;
433 433
                 hd.ReceiveZip = string.IsNullOrEmpty(od.PostCode)?"": od.PostCode;
434 434
                 hd.TotalPay = od.PayPrice.Value;
@@ -440,7 +440,7 @@ namespace ShopMobile.apiclass
440 440
                     item it = new item();
441 441
                     it.count = im.Qty.Value;
442 442
                     it.price = im.SumPrice.Value;
443
-                    it.ProductSysNo = im.PID.Value;
443
+                    it.ProductSysNo = im.SpNo.Value;
444 444
 
445 445
                     hd.products.Add(it);
446 446
                 }
@@ -489,7 +489,7 @@ namespace ShopMobile.apiclass
489 489
 
490 490
                     CommandInfo sql2 = new CommandInfo();
491 491
                     sql2.CommandText = "update PT_User_Account set Points=Points-@Points where MID=@MID;";
492
-                    SqlParameter[] para2 = { new SqlParameter("@PayPrice", SqlDbType.Decimal, 9), new SqlParameter("@MID", SqlDbType.Int, 4) };
492
+                    SqlParameter[] para2 = { new SqlParameter("@Points", SqlDbType.Decimal, 9), new SqlParameter("@MID", SqlDbType.Int, 4) };
493 493
                     para2[0].Value = od.Points;
494 494
                     para2[1].Value = od.CreateUser;
495 495
                     sql2.Parameters = para2;
@@ -517,7 +517,7 @@ namespace ShopMobile.apiclass
517 517
                     {
518 518
                         DbHelperSQL.ExecuteSqlTranWithIndentity(SQLStringList);
519 519
                         msg.result1 = 1;
520
-                        addordertopt(orderid, ref msg);//向平台创建订单
520
+                        //addordertopt(orderid, ref msg);//向平台创建订单
521 521
                     }
522 522
                     catch (Exception ex)
523 523
                     {
@@ -560,7 +560,7 @@ namespace ShopMobile.apiclass
560 560
                     item it = new item();
561 561
                     it.count = im.Qty.Value;
562 562
                     it.price = im.SumPrice.Value;
563
-                    it.ProductSysNo = im.PID.Value;
563
+                    it.ProductSysNo = im.SpNo.Value;
564 564
 
565 565
                     hd.products.Add(it);
566 566
                 }