修改提现方式
This commit is contained in:
parent
ef169b3bc6
commit
b615da169e
@ -30,7 +30,7 @@ class WithdrawLogic extends Logic
|
||||
*/
|
||||
public static function config($user_id, $hide = '')
|
||||
{
|
||||
|
||||
$hide_item = explode(',', $hide);
|
||||
$user = User::where('id', $user_id)->find();
|
||||
$config = [
|
||||
'able_withdraw' => $user['earnings'] ? $user['earnings'] : 0,
|
||||
@ -57,9 +57,15 @@ class WithdrawLogic extends Logic
|
||||
$a = $config['type'][0];
|
||||
$config['type'][0] = $config['type'][1];
|
||||
$config['type'][1] = $config['type'][2];
|
||||
dump($config);die;
|
||||
foreach ($hide_item as &$v) {
|
||||
if ($v == 'balance') {
|
||||
unset($config['type'][2]);
|
||||
}
|
||||
|
||||
if ($hide == 'balance') {
|
||||
unset($config['type'][2]);
|
||||
if ($v == 'bankCard') {
|
||||
unset($config['type'][2]);
|
||||
}
|
||||
}
|
||||
|
||||
return $config;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user