| xqd
@@ -935,6 +935,9 @@ class FurnitureController extends Controller
|
|
|
}
|
|
|
$data['user_id'] = $user->id;
|
|
|
|
|
|
+
|
|
|
+ $user->phone = $data['customer_phone'];
|
|
|
+ $user->save();
|
|
|
$res = AlbumOrderModel::create($data);
|
|
|
if ($res) {
|
|
|
$this->getQrcode(request('store_id'), $res->id);
|
| xqd
@@ -1957,6 +1960,9 @@ class FurnitureController extends Controller
|
|
|
// $qrcodetext = $QrReader->text();
|
|
|
|
|
|
$content = "";
|
|
|
+ $parts = AlbumPartsModel::where('store_id', request('store_id'))->where('order_id', request('order_id'))
|
|
|
+ ->get(['name', 'count']);
|
|
|
+
|
|
|
if ($role == 2) {
|
|
|
$content .= "--------------------------------<BR>";
|
|
|
$content .= "<B>订单编号 #" . $order->sno . " </B><BR><BR>";
|
| xqd
@@ -1967,6 +1973,12 @@ class FurnitureController extends Controller
|
|
|
$content .= "<B>送货地点:" . $order->customer_address . "</B><BR><BR>";
|
|
|
$content .= "<B>联系电话:" . $order->customer_phone . "</B><BR><BR>";
|
|
|
$content .= "<B>联系人:" . $order->customer_name . "</B><BR><BR>";
|
|
|
+ if (count($parts)) {
|
|
|
+ $content .= "配件:";
|
|
|
+ foreach ($parts as $part) {
|
|
|
+ $content .= "<C>".$part->name.'------'.$part->count . "</C><BR>";
|
|
|
+ };
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if ($order->remark && $role == 2) {
|
| xqd
@@ -1977,8 +1989,7 @@ class FurnitureController extends Controller
|
|
|
}
|
|
|
|
|
|
if ($role == 1) {
|
|
|
- $parts = AlbumPartsModel::where('store_id', request('store_id'))->where('order_id', request('order_id'))
|
|
|
- ->get(['name', 'count']);
|
|
|
+
|
|
|
$content .= "客户姓名:" . $order->customer_name . "<BR>";
|
|
|
$content .= "联系方式:" . $order->customer_phone . "<BR>";
|
|
|
$content .= "联系地址:" . $order->customer_address . "<BR>";
|