...
|
...
|
@@ -82,12 +82,14 @@ class AdminOrderController extends AdminBaseController |
|
|
// 聘用信息审核
|
|
|
public function operation(){
|
|
|
$data = $this->request->param();
|
|
|
Db::startTrans();
|
|
|
// 拒绝
|
|
|
if($data['type'] == 4){
|
|
|
$where_log['type'] = 1;
|
|
|
$where_log['compareId'] = $data['id'];
|
|
|
$isSet = Db::name('Refund')->where($where_log)->find();
|
|
|
if($isSet){
|
|
|
Db::rollback();
|
|
|
$this->apiResponse('0','请勿重复操作!');
|
|
|
}
|
|
|
$add_log['type'] = 1;
|
...
|
...
|
@@ -97,6 +99,7 @@ class AdminOrderController extends AdminBaseController |
|
|
$add_log['update_time'] = time();
|
|
|
$res_refund = Db::name('Refund')->where($add_log)->insertGetId($add_log);
|
|
|
if(!$res_refund){
|
|
|
Db::rollback();
|
|
|
$this->apiResponse('0','操作失败');
|
|
|
}
|
|
|
}
|
...
|
...
|
@@ -143,9 +146,10 @@ class AdminOrderController extends AdminBaseController |
|
|
echo "<pre/>";
|
|
|
print_r($a);
|
|
|
die;
|
|
|
|
|
|
Db::commit();
|
|
|
$this->apiResponse('1','操作成功');
|
|
|
}else{
|
|
|
Db::rollback();
|
|
|
$this->apiResponse('0','操作失败');
|
|
|
}
|
|
|
}
|
...
|
...
|
|