Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
my-yaf-project
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
chenchuanwen
my-yaf-project
Commits
137c10a2
Commit
137c10a2
authored
Nov 06, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
c3d1eaa0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
2 deletions
+26
-2
Index.php
application/controllers/Index.php
+4
-1
application.ini
conf/application.ini
+22
-1
No files found.
application/controllers/Index.php
View file @
137c10a2
...
...
@@ -52,8 +52,11 @@ class IndexController extends \Our\Controller_Abstract {
}
public
function
indexAction
()
{
$getKey
=
$_GET
[
'key'
];
if
(
$getKey
!=
'~!@#$`1234qwert'
){
throw
new
Exception
(
'非法'
,
-
1111
);
}
$orderDao
=
\DAO\Order\OrderModel
::
getInstance
();
$res
=
$orderDao
->
getList
(
array
(
'buyer_id'
=>
1
),
'*'
,
0
,
10
);
echo
json_encode
(
$res
);
exit
;
//$list = \Our\RedisHelper::cachedFunction(\Redis\Db4\GoodsBrowserRedisModel::getInstance(),array(&$browseDAO, 'getDistinctDate'),array($memberId,$startTime,$endTime,$order),\Our\ApiConst::twoMinSecond,array($memberId));
...
...
conf/application.ini
View file @
137c10a2
...
...
@@ -32,6 +32,17 @@ resources.database.slave.params.username = "root"
resources.database.slave.params.password
=
"!@#$%12345werty"
resources.database.slave.params.charset
=
"UTF8"
resources.database.slave.params.driver_options.1002
=
"SET NAMES utf8"
; mongodb
resources.database.mongo.params.driver
=
"scram"
resources.database.mongo.params.hostname
=
"172.16.142.15"
resources.database.mongo.params.port
=
27017
resources.database.mongo.params.database
=
"qmcs"
resources.database.mongo.params.username
=
"qmcs"
resources.database.mongo.params.password
=
"123456asdfgh"
resources.database.mongo.params.charset
=
"UTF8"
resources.database.mongo.params.driver_options.1002
=
"SET NAMES utf8"
;
password.key
=
'~!@#$`1234qwertasdfgzxcvb'
;
redis.database.params.host = "172.16.142.15"
...
...
@@ -58,7 +69,7 @@ elastic.master.port="9200"
elastic.master.scheme
=
"http"
;
password.key
=
'~!@#$`1234qwertasdfgzxcvb'
;
//
生产环境
;
生产环境
[product : common]
; 数据库配置
resources.database.params.driver
=
"pdo_mysql"
...
...
@@ -80,6 +91,16 @@ resources.database.slave.params.password = "!@#$%12345werty"
resources.database.slave.params.charset
=
"UTF8"
resources.database.slave.params.driver_options.1002
=
"SET NAMES utf8"
; mongodb
resources.database.mongo.params.driver
=
"scram"
resources.database.mongo.params.hostname
=
"127.0.0.1"
resources.database.mongo.params.port
=
27017
resources.database.mongo.params.database
=
"qmcs"
resources.database.mongo.params.username
=
"qmcs"
resources.database.mongo.params.password
=
"123456asdfgh"
resources.database.mongo.params.charset
=
"UTF8"
resources.database.mongo.params.driver_options.1002
=
"SET NAMES utf8"
password.key
=
'~!@#$`1234qwertasdfgzxcvb'
;
redis.database.params.host = "127.0.0.1"
redis.database.params.port
=
"6379"
...
...
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