Commit 0f799b8f authored by twj's avatar twj

完善期权提现记录

parent ce05fe6f
...@@ -129,6 +129,7 @@ class Esop extends Common ...@@ -129,6 +129,7 @@ class Esop extends Common
if (isset($money_res['account']) && $money_res['account'] < $data['money']) { if (isset($money_res['account']) && $money_res['account'] < $data['money']) {
ajaxmsg('提现金额已经大于可用余额!', 0); ajaxmsg('提现金额已经大于可用余额!', 0);
} }
$data['stock_id'] = $money_res['stock_id'];
//查询是否已申请过提现,一次只能有一笔提现 //查询是否已申请过提现,一次只能有一笔提现
$withdraw_info = Db::name('money_withdraw') $withdraw_info = Db::name('money_withdraw')
->where(['mid' => MID]) ->where(['mid' => MID])
......
...@@ -68,6 +68,7 @@ class EsopPlan extends Model ...@@ -68,6 +68,7 @@ class EsopPlan extends Model
$data['mid'] = $parameter['mid']; $data['mid'] = $parameter['mid'];
$data['money'] = $parameter['money'] * 100; $data['money'] = $parameter['money'] * 100;
$data['fee'] = $parameter['money'] * config('withdraw_rate'); $data['fee'] = $parameter['money'] * config('withdraw_rate');
$data['stock_id'] = $parameter['stock_id'];
$data['order_no'] = 'estx' . generate_rand_str(10, 3); $data['order_no'] = 'estx' . generate_rand_str(10, 3);
$data['create_time'] = time(); $data['create_time'] = time();
$data['create_ip'] = get_client_ip(0); $data['create_ip'] = get_client_ip(0);
...@@ -137,7 +138,7 @@ class EsopPlan extends Model ...@@ -137,7 +138,7 @@ class EsopPlan extends Model
$info = "提现单号:" . $withdraw['order_no']; $info = "提现单号:" . $withdraw['order_no'];
$affect = $withdraw['money']; $affect = $withdraw['money'];
$type = 3; $type = 3;
$account = $withdraw['money'] / 100; $account = $withdraw['money'];
$res1 = true; $res1 = true;
} elseif ($status == 2) { // 提现失败 解冻冻结金额 } elseif ($status == 2) { // 提现失败 解冻冻结金额
MoneyWithdrawModel::sms_withdraw('stock_withdraw_auditing_fail', $user_mobile, $withdraw['money']); MoneyWithdrawModel::sms_withdraw('stock_withdraw_auditing_fail', $user_mobile, $withdraw['money']);
......
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