Explorar el Código

wesmiler 抢表商城

APPLE hace 3 años
padre
commit
2507515541
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      app/Services/Common/TradeService.php

+ 1 - 2
app/Services/Common/TradeService.php

@@ -501,7 +501,6 @@ class TradeService extends BaseService
         return round($data, 2);
     }
 
-
     /**
      * 获取用户收益统计
      * @param $userId
@@ -998,7 +997,7 @@ class TradeService extends BaseService
             return false;
         }
 
-        if (!GoodsModel::where(['goods_id' => $info['goods_id']])->update(['confirm_status' => 2, 'update_time' => time()])) {
+        if (!GoodsModel::where(['id' => $info['goods_id']])->update(['confirm_status' => 2, 'update_time' => time()])) {
             DB::rollBack();
             $this->error = 2054;
             return false;