This commit is contained in:
unknown 2023-08-23 18:07:52 +08:00
parent 3415b45bee
commit 25edccb9a4
2 changed files with 2 additions and 2 deletions

View File

@ -80,7 +80,7 @@ class VehicleController extends BaseApiController
$result = VehicleLogic::rendRecordEdit($param);
//返回数据
if($result['code'] == 1){
return $this->success($result['msg'],$result['data']);
return $this->success($result['msg']);
}else{
return $this->fail($result['msg']);
}

View File

@ -117,7 +117,7 @@ class VehicleLogic extends BaseLogic
}
VehicleRentRecord::startTrans();
try {
if($record['rent_type'] == 2){
if($record['rent_type'] == 1){
//获取承租公司信息
$company = Company::field('id,user_id,company_name,master_name,master_phone')->where('id',$record['party_b'])->find();
//设置数据