Merge pull request '修改了admin里面的发起合同接口' (#31) from zhangwei into master
Reviewed-on: http://git.excellentkk.cn/mkm/TaskSystem/pulls/31
This commit is contained in:
commit
ede20042f2
@ -142,8 +142,8 @@ class CompanyController extends BaseAdminController
|
|||||||
$params['party_b'] = $params['id'];
|
$params['party_b'] = $params['id'];
|
||||||
unset($params['id']);
|
unset($params['id']);
|
||||||
$result = ContractLogic::initiate_contract($params);
|
$result = ContractLogic::initiate_contract($params);
|
||||||
if ($result == true) {
|
if ($result['code']==1) {
|
||||||
return $this->success('发起成功,等待平台风控部上传合同', [], 1, 1);
|
return $this->success($result['msg'], $result['data']);
|
||||||
}
|
}
|
||||||
return $this->fail(ContractLogic::getError());
|
return $this->fail(ContractLogic::getError());
|
||||||
}
|
}
|
||||||
|
@ -203,7 +203,12 @@ class ContractLogic extends BaseLogic
|
|||||||
$model->check_status = 1;
|
$model->check_status = 1;
|
||||||
$model->update_time = time();
|
$model->update_time = time();
|
||||||
$model->setAttrs($data);
|
$model->setAttrs($data);
|
||||||
return $model->save($data);
|
$res = $model->save($data);
|
||||||
|
if($res){
|
||||||
|
return ['code'=>1,'msg'=>'发起成功,等待平台风控部上传合同','data'=>['id'=>$model->id]];
|
||||||
|
}else{
|
||||||
|
return ['code'=>0,'msg'=>'发起失败,请稍后重试',];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**发送合同 */
|
// /**发送合同 */
|
||||||
|
2
runtime/.gitignore
vendored
2
runtime/.gitignore
vendored
@ -1,2 +0,0 @@
|
|||||||
*
|
|
||||||
!.gitignore
|
|
Loading…
x
Reference in New Issue
Block a user