按线路分单
This commit is contained in:
parent
20baf88f6e
commit
ee59ad60ce
|
@ -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, '线路已存在');
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue