wesmiler %!s(int64=3) %!d(string=hai) anos
pai
achega
c69c7315d7
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      source/application/common/service/order/Complete.php

+ 3 - 1
source/application/common/service/order/Complete.php

@@ -86,7 +86,9 @@ class Complete
             DealerOrderModel::grantOrderMoney($order, $this->orderType);
 
             // 用户升级
-            UserService::upgrade($order['user_id'], $order['total_price'], $order['wxapp_id']);
+            if($order['is_upgrade'] == 1){
+                UserService::upgrade($order['user_id'], $order['total_price'], $order['wxapp_id']);
+            }
         }
 
         // 更新好物圈订单状态