From 6475bccec2c790e9e696b8568c84754efdf855ff Mon Sep 17 00:00:00 2001 From: CGDF <17256673+CGDF-Github@users.noreply.github.com> Date: Fri, 30 Nov 2018 11:21:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dadd=20invite=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Models/User.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index f55fa017..01790614 100755 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -125,7 +125,7 @@ class User extends Model } } $code->code = $temp_code; - $code->user = $uid; + $code->user_id = $uid; $code->save(); } @@ -133,13 +133,6 @@ class User extends Model return Uuid::uuid3(Uuid::NAMESPACE_DNS, $this->attributes['id']. '|' .$this->attributes['passwd'])->toString(); } - public function addManyInviteCodes($num) - { - for ($i = 0; $i < $num; $i++) { - $this->addInviteCode(); - } - } - public function trafficUsagePercent() { $total = $this->attributes['u'] + $this->attributes['d'];