|
@@ -39,7 +39,7 @@ class DeviceRepairController
|
|
|
// 'contact_name', // 联系人
|
|
// 'contact_name', // 联系人
|
|
|
// 'contact_phone' // 联系电话
|
|
// 'contact_phone' // 联系电话
|
|
|
// ]);
|
|
// ]);
|
|
|
- $data= UtilService::postMore([
|
|
|
|
|
|
|
+ list($device_name, $device_number, $order_id, $product_id, $repair_problem, $return_address, $contact_name, $contact_phone)= UtilService::postMore([
|
|
|
'device_name', // 设备名称
|
|
'device_name', // 设备名称
|
|
|
'device_number', // 数量
|
|
'device_number', // 数量
|
|
|
'order_id',
|
|
'order_id',
|
|
@@ -71,7 +71,16 @@ class DeviceRepairController
|
|
|
// if (!$validate->check($data)) {
|
|
// if (!$validate->check($data)) {
|
|
|
// return json(['code' => 0, 'msg' => $validate->getError()]);
|
|
// return json(['code' => 0, 'msg' => $validate->getError()]);
|
|
|
// }
|
|
// }
|
|
|
- var_dump($data);die();
|
|
|
|
|
|
|
+ $data = [
|
|
|
|
|
+ 'device_name' => $device_name,
|
|
|
|
|
+ 'device_number' => $device_number,
|
|
|
|
|
+ 'order_id' => $order_id,
|
|
|
|
|
+ 'product_id' => $product_id,
|
|
|
|
|
+ 'repair_problem' => $repair_problem,
|
|
|
|
|
+ 'return_address' => $return_address,
|
|
|
|
|
+ 'contact_name' => $contact_name,
|
|
|
|
|
+ 'contact_phone' => $contact_phone
|
|
|
|
|
+ ];
|
|
|
$rs=DeviceRepairModel::where('order_id', $data['order_id'])->where('product_id', $data['product_id'])->find();
|
|
$rs=DeviceRepairModel::where('order_id', $data['order_id'])->where('product_id', $data['product_id'])->find();
|
|
|
if ($rs){
|
|
if ($rs){
|
|
|
// return json(['code' => 0, 'msg' => '您已提交过报修单,请勿重复提交']);
|
|
// return json(['code' => 0, 'msg' => '您已提交过报修单,请勿重复提交']);
|