|
@@ -41,12 +41,13 @@ class ProductOrderController extends Controller
|
41
|
41
|
$productOrder = new ProductOrder;
|
42
|
42
|
$productOrder->status = 0;
|
43
|
43
|
}
|
44
|
|
- if ($wechat_id && $product_id && $wechat_id && $amount
|
|
44
|
+ if ($wechat_id && $product_id && $amount
|
45
|
45
|
&& $address && $contact && $phone) {
|
46
|
46
|
|
47
|
47
|
$product = Product::find($product_id);
|
48
|
48
|
$unit = $product->price;
|
49
|
49
|
$product_name = $product->name;
|
|
50
|
+ $color = $product->color;
|
50
|
51
|
$productOrder->product_id = $product_id;
|
51
|
52
|
$productOrder->product_name = $product_name;
|
52
|
53
|
$productOrder->wechat_id = $wechat_id;
|
|
@@ -54,6 +55,7 @@ class ProductOrderController extends Controller
|
54
|
55
|
$productOrder->unit = $unit;
|
55
|
56
|
$productOrder->amount = $amount;
|
56
|
57
|
$productOrder->remark = $remark;
|
|
58
|
+ $productOrder->color = $color;
|
57
|
59
|
$productOrder->info = $info;
|
58
|
60
|
$productOrder->address = $address;
|
59
|
61
|
$productOrder->contact = $contact;
|