按线路分单

This commit is contained in:
jianghanbo 2024-10-14 15:09:01 +08:00
parent 20baf88f6e
commit ee59ad60ce
2 changed files with 1 additions and 4 deletions

View File

@ -45,7 +45,7 @@ class ProductsController extends base {
return $this->error(2001, '线路id必填');
}
$where = ['os' => $request->get('os'), 'third_product_id' => $request->get('third_product_id')];
$where = ['os' => $request->post('os'), 'third_product_id' => $request->post('third_product_id')];
$product = (new Products())->where($where)->find();
if (!empty($product)) {
return $this->error(2002, '线路已存在');

View File

@ -315,9 +315,6 @@ class Orders {
return [];
}
$users = Admins::where('status', 1)->where('is_order', 1)->whereFindInSet('product_ids', $product->id)->select();
if ($thirdProductId == '1128292503') {
Log::info(' 1128292503 find not one...' . json_encode($product));
}
$us = [];
foreach ($users as $u) {
$ru = Redis::get('CRM:USER:ONLINE:' . $u->id);