...
|
...
|
@@ -319,6 +319,10 @@ class AesController extends HomeBaseController{ |
|
|
public function addFault(){
|
|
|
$param=$this->request->param();
|
|
|
$param['create_time']=time();
|
|
|
$re=Db::name('fault')->where('order_no',$param['order_no'])->find();
|
|
|
if ($re){
|
|
|
$this->apiResponse(302,'您已提交该设备报修');
|
|
|
}
|
|
|
try{
|
|
|
Db::name('fault')->insert($param);
|
|
|
}catch (\Exception $exception){
|
...
|
...
|
|