Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
quxiu
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
冷斌
quxiu
Commits
e7b338a3
Commit
e7b338a3
authored
Apr 23, 2020
by
冷斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
0ae48771
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
0 deletions
+18
-0
api/Appapi/Model/Login.php
+6
-0
application/Appapi/Controller/InviteController.class.php
+6
-0
application/Appapi/Controller/RegController.class.php
+6
-0
No files found.
api/Appapi/Model/Login.php
View file @
e7b338a3
...
@@ -83,6 +83,9 @@ class Model_Login extends PhalApi_Model_NotORM {
...
@@ -83,6 +83,9 @@ class Model_Login extends PhalApi_Model_NotORM {
"user_type"
=>
2
,
//会员
"user_type"
=>
2
,
//会员
"source"
=>
$source
,
"source"
=>
$source
,
"coin"
=>
$reg_reward
,
"coin"
=>
$reg_reward
,
"votes"
=>
0
,
"i_votes"
=>
0
,
"f_votes"
=>
0
);
);
$isexist
=
DI
()
->
notorm
->
users
$isexist
=
DI
()
->
notorm
->
users
...
@@ -185,6 +188,9 @@ class Model_Login extends PhalApi_Model_NotORM {
...
@@ -185,6 +188,9 @@ class Model_Login extends PhalApi_Model_NotORM {
"user_type"
=>
2
,
//会员
"user_type"
=>
2
,
//会员
"source"
=>
$source
,
"source"
=>
$source
,
"coin"
=>
$reg_reward
,
"coin"
=>
$reg_reward
,
"votes"
=>
0
,
"i_votes"
=>
0
,
"f_votes"
=>
0
);
);
$rs
=
DI
()
->
notorm
->
users
->
insert
(
$data
);
$rs
=
DI
()
->
notorm
->
users
->
insert
(
$data
);
...
...
application/Appapi/Controller/InviteController.class.php
View file @
e7b338a3
...
@@ -123,6 +123,9 @@ class InviteController extends HomebaseController {
...
@@ -123,6 +123,9 @@ class InviteController extends HomebaseController {
'user_status'
=>
1
,
'user_status'
=>
1
,
"user_type"
=>
2
,
//会员
"user_type"
=>
2
,
//会员
'signature'
=>
'这家伙很懒,什么都没留下'
,
'signature'
=>
'这家伙很懒,什么都没留下'
,
"votes"
=>
0
,
"i_votes"
=>
0
,
"f_votes"
=>
0
);
);
$userid
=
$User
->
add
(
$data
);
$userid
=
$User
->
add
(
$data
);
...
@@ -312,6 +315,9 @@ class InviteController extends HomebaseController {
...
@@ -312,6 +315,9 @@ class InviteController extends HomebaseController {
'user_status'
=>
1
,
'user_status'
=>
1
,
"user_type"
=>
2
,
//会员
"user_type"
=>
2
,
//会员
"pid"
=>
$agentid
,
"pid"
=>
$agentid
,
"votes"
=>
0
,
"i_votes"
=>
0
,
"f_votes"
=>
0
);
);
if
(
$configPri
[
'reg_reward'
]
>
0
){
if
(
$configPri
[
'reg_reward'
]
>
0
){
...
...
application/Appapi/Controller/RegController.class.php
View file @
e7b338a3
...
@@ -123,6 +123,9 @@ class RegController extends HomebaseController {
...
@@ -123,6 +123,9 @@ class RegController extends HomebaseController {
'user_status'
=>
1
,
'user_status'
=>
1
,
"user_type"
=>
2
,
//会员
"user_type"
=>
2
,
//会员
'signature'
=>
'这家伙很懒,什么都没留下'
,
'signature'
=>
'这家伙很懒,什么都没留下'
,
"votes"
=>
0
,
"i_votes"
=>
0
,
"f_votes"
=>
0
);
);
$userid
=
$User
->
add
(
$data
);
$userid
=
$User
->
add
(
$data
);
...
@@ -311,6 +314,9 @@ class RegController extends HomebaseController {
...
@@ -311,6 +314,9 @@ class RegController extends HomebaseController {
'create_time'
=>
date
(
"Y-m-d H:i:s"
),
'create_time'
=>
date
(
"Y-m-d H:i:s"
),
'user_status'
=>
1
,
'user_status'
=>
1
,
"user_type"
=>
2
,
//会员
"user_type"
=>
2
,
//会员
"votes"
=>
0
,
"i_votes"
=>
0
,
"f_votes"
=>
0
);
);
if
(
$configPri
[
'reg_reward'
]
>
0
){
if
(
$configPri
[
'reg_reward'
]
>
0
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment