修改提现方式
This commit is contained in:
parent
045fbc6ff6
commit
cdbc3563e3
@ -30,7 +30,6 @@ 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,
|
||||
@ -54,18 +53,12 @@ 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]);
|
||||
// }
|
||||
// $a = $config['type'][0];
|
||||
// $config['type'][0] = $config['type'][1];
|
||||
// $config['type'][1] = $config['type'][2];
|
||||
//
|
||||
// if ($v == 'bankCard') {
|
||||
// unset($config['type'][2]);
|
||||
// }
|
||||
// if ($hide == 'balance') {
|
||||
// unset($config['type'][2]);
|
||||
// }
|
||||
|
||||
return $config;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user