...
|
...
|
@@ -319,9 +319,11 @@ 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,'您已提交该设备报修');
|
|
|
if (!empty($param['order_no'])) {
|
|
|
$re = Db::name('fault')->where('order_no', $param['order_no'])->find();
|
|
|
if ($re) {
|
|
|
$this->apiResponse(302, '您已提交该设备报修');
|
|
|
}
|
|
|
}
|
|
|
try{
|
|
|
Db::name('fault')->insert($param);
|
...
|
...
|
|