mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 17:31:49 +08:00 
			
		
		
		
	update
This commit is contained in:
		| @@ -56,7 +56,9 @@ class UserController extends Controller | |||||||
|                 'is_admin', |                 'is_admin', | ||||||
|                 'remind_expire', |                 'remind_expire', | ||||||
|                 'remind_traffic', |                 'remind_traffic', | ||||||
|                 'expired_at' |                 'expired_at', | ||||||
|  |                 'balance', | ||||||
|  |                 'commission_balance' | ||||||
|             ]) |             ]) | ||||||
|             ->first(); |             ->first(); | ||||||
|         $user['avatar_url'] = 'https://cdn.v2ex.com/gravatar/' . md5($user->email) . '?s=64&d=identicon'; |         $user['avatar_url'] = 'https://cdn.v2ex.com/gravatar/' . md5($user->email) . '?s=64&d=identicon'; | ||||||
|   | |||||||
| @@ -105,6 +105,7 @@ CREATE TABLE `v2_user` ( | |||||||
|   `invite_user_id` int(11) DEFAULT NULL, |   `invite_user_id` int(11) DEFAULT NULL, | ||||||
|   `email` varchar(64) NOT NULL, |   `email` varchar(64) NOT NULL, | ||||||
|   `password` varchar(64) NOT NULL, |   `password` varchar(64) NOT NULL, | ||||||
|  |   `balance` int(11) NOT NULL DEFAULT '0', | ||||||
|   `commission_rate` int(11) DEFAULT NULL, |   `commission_rate` int(11) DEFAULT NULL, | ||||||
|   `commission_balance` int(11) NOT NULL DEFAULT '0', |   `commission_balance` int(11) NOT NULL DEFAULT '0', | ||||||
|   `t` int(11) NOT NULL DEFAULT '0', |   `t` int(11) NOT NULL DEFAULT '0', | ||||||
| @@ -132,4 +133,4 @@ CREATE TABLE `v2_user` ( | |||||||
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||||||
|  |  | ||||||
|  |  | ||||||
| -- 2019-11-27 11:46:36 | -- 2019-11-28 17:14:25 | ||||||
| @@ -16,3 +16,5 @@ ADD `type` int(11) NOT NULL COMMENT '1新购2续费3升级' AFTER `plan_id`; | |||||||
| /* 2019-11-27 */ | /* 2019-11-27 */ | ||||||
| ALTER TABLE `v2_user` | ALTER TABLE `v2_user` | ||||||
| ADD `commission_rate` int(11) NULL AFTER `password`; | ADD `commission_rate` int(11) NULL AFTER `password`; | ||||||
|  | ALTER TABLE `v2_user` | ||||||
|  | ADD `balance` int(11) NOT NULL DEFAULT '0' AFTER `password`; | ||||||
		Reference in New Issue
	
	Block a user