Commit e61a5cd5 authored by rlgy's avatar rlgy

提币撤提返还资产

parent 9d683ce9
......@@ -210,8 +210,16 @@ class CoinReleaseCheck extends BaseActiveRecord
if ($coin_release_list) {
$coin_release_list->status = 2;//提币失败
if ($coin_release_list->save(false)) {
$trans->commit();
return true;
//返还用户资产
$coin_release_member = CoinReleaseMember::findOne($this->mid);
$coin_release_member->release += $this->amount;
$coin_release_member->output -= $this->amount;
if ($coin_release_member->save(false)) {
$trans->commit();
return true;
} else {
throw new \Exception('返还资产失败', -1);
}
} else {
throw new \Exception('修改提币记录失败', -1);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment