|
|
@ -134,7 +134,7 @@ class DemandBiddingController extends AdminController |
|
|
//将产品绑给代理商
|
|
|
//将产品绑给代理商
|
|
|
$demand = Demand::find($form->model()->demand_id); |
|
|
$demand = Demand::find($form->model()->demand_id); |
|
|
$demand->demand_product_id = $productId; |
|
|
$demand->demand_product_id = $productId; |
|
|
$demand->save(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
$demandProduct = DemandProduct::find($productId); |
|
|
$demandProduct = DemandProduct::find($productId); |
|
|
$product = new Product(); |
|
|
$product = new Product(); |
|
|
@ -156,6 +156,9 @@ class DemandBiddingController extends AdminController |
|
|
$demand = Demand::find($form->model()->demand_id); |
|
|
$demand = Demand::find($form->model()->demand_id); |
|
|
$demand->demand_product_id = $productId; |
|
|
$demand->demand_product_id = $productId; |
|
|
$demand->save(); |
|
|
$demand->save(); |
|
|
|
|
|
|
|
|
|
|
|
$demand->product_id = $product->id; |
|
|
|
|
|
$demand->save(); |
|
|
DB::commit(); |
|
|
DB::commit(); |
|
|
} catch (\Exception $e) { |
|
|
} catch (\Exception $e) { |
|
|
Log::error('分配订单失败::' . $e->getTraceAsString()); |
|
|
Log::error('分配订单失败::' . $e->getTraceAsString()); |
|
|
|