chenxiqiang 6 роки тому
джерело
коміт
6a5e7edb40

+ 3
- 1
manage-server/app/Http/Controllers/ProductOrderController.php Переглянути файл

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

Loading…
Відмінити
Зберегти