DuGuYang 3 anos atrás
pai
commit
7e647c5887

+ 3 - 3
AppStart/Helper/PreStoreApplyQueue.cs

@@ -40,7 +40,7 @@ public class PreStoreApplyHelper
                         Orders order = db.Orders.FirstOrDefault(m => m.Id == OrderId);
                         if (order != null)
                         {
-                            decimal TotalPrice = order.TotalPrice * 2;
+                            decimal TotalPrice = order.TotalPrice;
                             AddAmount2(db, 1, order.UserId, TotalPrice, order.PayMode, 1, order.Id);
                         }
                     }
@@ -59,7 +59,7 @@ public class PreStoreApplyHelper
                         AddAmount2(db, 3, UserId, Amount, PayMode, 0);
                         if (PayMode != 1)
                         {
-                            decimal BalanceAmount = Amount / 2;
+                            decimal BalanceAmount = Amount;
                             UserAccount account = db.UserAccount.FirstOrDefault(m => m.Id == UserId);
                             if (account == null)
                             {
@@ -82,7 +82,7 @@ public class PreStoreApplyHelper
                                 CreateDate = DateTime.Now,
                                 UpdateDate = DateTime.Now,
                                 UserId = UserId, //创客
-                                ChangeType = 119, //变动类型
+                                ChangeType = 126, //变动类型
                                 ChangeAmount = BalanceAmount, //变更金额
                                 BeforeTotalAmount = BeforeTotalAmount, //变更前总金额
                                 AfterTotalAmount = AfterTotalAmount, //变更后总金额

+ 3 - 0
AppStart/RelationClassForConst.cs

@@ -132,6 +132,9 @@ namespace MySystem
                 case 126:
                     result = "机具货款退还";
                     break;
+                case 130:
+                    result = "预发临时额度退还";
+                    break;
             }
             return result;
         }

+ 2 - 0
Areas/Admin/Views/MainServer/UserAccountRecord/Index.cshtml

@@ -112,6 +112,8 @@
                                 <option value="116">大盟主奖励</option>
                                 <option value="124">扣机具货款</option>
                                 <option value="125">软件服务费</option>
+                                <option value="126">机具货款退还</option>
+                                <option value="130">预发临时额度退还</option>
                             </select>
                         </div>
                     </div>