Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
ylc.llewan.com
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
llewan
ylc.llewan.com
Commits
e83d356e
Commit
e83d356e
authored
Dec 11, 2018
by
734642908@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e
parent
8f439457
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
config.php
Application/Common/Conf/test/config.php
+13
-1
UserController.class.php
Application/Home/Controller/UserController.class.php
+1
-1
No files found.
Application/Common/Conf/test/config.php
View file @
e83d356e
...
@@ -27,7 +27,19 @@ return array(
...
@@ -27,7 +27,19 @@ return array(
'DB_PORT'
=>
'3306'
,
'DB_PORT'
=>
'3306'
,
'DB_PREFIX'
=>
''
,
'DB_PREFIX'
=>
''
,
'DB_CHARSET'
=>
'utf8'
,
'DB_CHARSET'
=>
'utf8'
,
'DB_PARAMS'
=>
array
(
\PDO
::
ATTR_CASE
=>
\PDO
::
CASE_NATURAL
,
\PDO
::
ATTR_PERSISTENT
=>
true
),
'DB_PARAMS'
=>
array
(
\PDO
::
ATTR_PERSISTENT
=>
true
),
'DB_DEBUG'
=>
true
),
'LLEWAN_READ'
=>
array
(
'DB_TYPE'
=>
'mysql'
,
'DB_HOST'
=>
'172.16.0.12'
,
//前台只读数据库
'DB_NAME'
=>
'lewan_hezi'
,
'DB_USER'
=>
'lewean'
,
'DB_PWD'
=>
'a@lw%k3len'
,
'DB_PORT'
=>
'3306'
,
'DB_PREFIX'
=>
''
,
'DB_CHARSET'
=>
'utf8'
,
'DB_PARAMS'
=>
array
(
\PDO
::
ATTR_PERSISTENT
=>
true
),
'DB_DEBUG'
=>
true
'DB_DEBUG'
=>
true
),
),
'MYNAME'
=>
'Index'
,
'MYNAME'
=>
'Index'
,
...
...
Application/Home/Controller/UserController.class.php
View file @
e83d356e
...
@@ -10,7 +10,7 @@ class UserController extends BaseController
...
@@ -10,7 +10,7 @@ class UserController extends BaseController
//用户个人信息
//用户个人信息
public
function
userInfo
()
public
function
userInfo
()
{
{
$re444
=
M
(
"game_member"
,
""
,
"LLEWAN_READ"
)
->
find
();
// $model= M("game_member","",C("LEWAN_HEZI"));
// $model= M("game_member","",C("LEWAN_HEZI"));
$model
=
new
\Home\Model\UserModel
();
$model
=
new
\Home\Model\UserModel
();
$token
=
decryptToken
(
I
(
'token'
));
$token
=
decryptToken
(
I
(
'token'
));
...
...
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