|
@@ -1291,15 +1291,22 @@ class MarketController extends AdminBaseController
|
|
|
if(isset($param['no']) && isset($param['id'])){
|
|
if(isset($param['no']) && isset($param['id'])){
|
|
|
//开始进行调用审核失败发送
|
|
//开始进行调用审核失败发送
|
|
|
|
|
|
|
|
|
|
+ Db::startTrans();
|
|
|
|
|
+
|
|
|
|
|
+ $data0['status'] = 2;
|
|
|
|
|
+ $result0=Db::name('user_balance_log')->where('id',$param['id'])->update($data0);
|
|
|
|
|
+
|
|
|
// $result=Activity::bookConfirm($param['id'],5,$param['noremark']);
|
|
// $result=Activity::bookConfirm($param['id'],5,$param['noremark']);
|
|
|
if(is_array($result)){
|
|
if(is_array($result)){
|
|
|
|
|
+
|
|
|
|
|
+ Db::commit();
|
|
|
echo 1;die;
|
|
echo 1;die;
|
|
|
}else{
|
|
}else{
|
|
|
//进行反扣回去
|
|
//进行反扣回去
|
|
|
$data0['balance'] +=$result['change'];
|
|
$data0['balance'] +=$result['change'];
|
|
|
Db::name('user_balance_log')->where('id',$param['id'])->update($data0);
|
|
Db::name('user_balance_log')->where('id',$param['id'])->update($data0);
|
|
|
Db::name('user')->where('id',$result['user_id'])->update($data0);
|
|
Db::name('user')->where('id',$result['user_id'])->update($data0);
|
|
|
-
|
|
|
|
|
|
|
+ Db::rollback();
|
|
|
echo 0;die;
|
|
echo 0;die;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|