|
|
@@ -392,7 +392,22 @@ class Contract extends BaseController
|
|
|
$article->delete();
|
|
|
return app('json')->success();
|
|
|
}
|
|
|
-
|
|
|
+ // 提前中断合同
|
|
|
+ public function endComment(\think\Request $request)
|
|
|
+ {
|
|
|
+ $id = $request->param('id');
|
|
|
+ $post = UtilService::getMore(
|
|
|
+ [
|
|
|
+ ['reason', ''],
|
|
|
+ ], $request
|
|
|
+ );
|
|
|
+ $article = UserContractRecordModel::where('id', $id)->update(['status'=>2,'delete_time'=>time(),'reason'=>$post['reason']]);
|
|
|
+// if (!$article) {
|
|
|
+// return app('json')->fail('合同不存在');
|
|
|
+// }
|
|
|
+// $article->delete();
|
|
|
+ return app('json')->success();
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|