Просмотр исходного кода

先注释-市场部说需要增加验证配送方式是否发生变化

sunxiaobiao 1 год назад
Родитель
Сommit
716af4ad64
1 измененных файлов с 17 добавлено и 17 удалено
  1. 17 17
      app/controller/api/douhuomall/Take.php

+ 17 - 17
app/controller/api/douhuomall/Take.php

@@ -257,23 +257,23 @@ class Take
257 257
                 Db::name('douhuomall')->insert($data);
258 258
             } else {
259 259
                 // 如果货物 属于已被删除状态,并且新更新进来的状态 非删除状态,并且成本价、零售价、市场价、利润率没有变动的话,
260
-                if ($findData['status'] == 3
261
-                    && $data['status'] !== 3
262
-                    && $data['cost_price'] == $findData['cost_price']
263
-                    && $data['ot_price'] == $findData['ot_price']
264
-                    && $data['market_price'] == $findData['market_price']
265
-                    && $data['profit'] == $findData['profit']) {
266
-                    $count = Db::name('store_product')
267
-                        ->where('spu_id', '=', $data['spu_id'])
268
-                        ->where('is_show', '=', 0)
269
-                        ->where('is_status', '=', 0)
270
-                        ->count();
271
-                    if ($count) {
272
-                        Db::name('store_product')->where('spu_id', '=', $data['spu_id'])->update([
273
-                            'is_show' => 1
274
-                        ]);
275
-                    }
276
-                }
260
+                // if ($findData['status'] == 3
261
+                //     && $data['status'] !== 3
262
+                //     && $data['cost_price'] == $findData['cost_price']
263
+                //     && $data['ot_price'] == $findData['ot_price']
264
+                //     && $data['market_price'] == $findData['market_price']
265
+                //     && $data['profit'] == $findData['profit']) {
266
+                //     $count = Db::name('store_product')
267
+                //         ->where('spu_id', '=', $data['spu_id'])
268
+                //         ->where('is_show', '=', 0)
269
+                //         ->where('is_status', '=', 0)
270
+                //         ->count();
271
+                //     if ($count) {
272
+                //         Db::name('store_product')->where('spu_id', '=', $data['spu_id'])->update([
273
+                //             'is_show' => 1
274
+                //         ]);
275
+                //     }
276
+                // }
277 277
 
278 278
                 Db::name('douhuomall')->where('spu_id', $findData['spu_id'])->update([
279 279
                     'status' => $data['status'],