Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
SooonerHotel
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
吴贤德
SooonerHotel
Commits
ef5019e1
Commit
ef5019e1
authored
3 years ago
by
吴贤德
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
中心接口调整
parent
af77289d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
17 deletions
+22
-17
config.php
SooonerHotel/App/Conf/config.php
+14
-14
CenterAction.class.php
SooonerHotel/App/Lib/Action/Api/CenterAction.class.php
+8
-3
No files found.
SooonerHotel/App/Conf/config.php
View file @
ef5019e1
...
...
@@ -49,23 +49,23 @@ return array(
'VAR_TEMPLATE'
=>
'l'
,
//与语言参数使用相同参数,实现多语言支持
//内网数据库配置
// 'DB_TYPE' => 'mysqli', //mysql ,mysqli
// 'DB_HOST' => '192.168.200.24',
// 'DB_NAME' =>'soooner_hotel',
// 'DB_USER' =>'root',
// 'DB_PWD' =>'hezuo123456',
// 'DB_PORT' =>'3306',
// 'DB_PREFIX' =>'',
//wasu
'DB_TYPE'
=>
'mysqli'
,
//mysql ,mysqli
'DB_HOST'
=>
'192.168.200.24
'
,
'DB_HOST'
=>
'47.99.247.16
'
,
'DB_NAME'
=>
'soooner_hotel'
,
'DB_USER'
=>
'root'
,
'DB_PWD'
=>
'hezuo123456
'
,
'DB_PORT'
=>
'
3306'
,
'DB_PWD'
=>
'atomicytl
'
,
'DB_PORT'
=>
'2
3306'
,
'DB_PREFIX'
=>
''
,
//wasu
// 'DB_TYPE' => 'mysqli', //mysql ,mysqli
// 'DB_HOST' => '47.99.247.16',
// 'DB_NAME' =>'soooner_hotel',
// 'DB_USER' =>'root',
// 'DB_PWD' =>'atomicytl',
// 'DB_PORT' =>'23306',
// 'DB_PREFIX' =>'',
//RBAC认证配置
//'RBAC_SUPERADMIN'=>'sysadmin',
//'ADMIN_AUTH_KEY'=>'sysadmin',
...
...
@@ -76,8 +76,8 @@ return array(
'NOT_AUTH_MODULE'
=>
'Index,Help'
,
//无需认证模块
'NOT_AUTH_ACTION'
=>
'addRoleHandle'
,
//无需认证模块
// 'USER_AUTH_GATEWAY'=>'/Login/loginDo', //认证网关
'RBAC_DB_DSN'
=>
'mysql://root:hezuo123456@192.168.200.24:3306/soooner_hotel'
,
//内网测试
//
'RBAC_DB_DSN'=>'mysql://root:atomicytl@47.99.247.16:23306/soooner_hotel', //wasu
//
'RBAC_DB_DSN'=>'mysql://root:hezuo123456@192.168.200.24:3306/soooner_hotel', //内网测试
'RBAC_DB_DSN'
=>
'mysql://root:atomicytl@47.99.247.16:23306/soooner_hotel'
,
//wasu
'RBAC_ROLE_TABLE'
=>
'rbac_role'
,
//角色表名称
'RBAC_USER_TABLE'
=>
'rbac_role_user'
,
//用户表名称
'RBAC_ACCESS_TABLE'
=>
'rbac_access'
,
//权限表名称
...
...
This diff is collapsed.
Click to expand it.
SooonerHotel/App/Lib/Action/Api/CenterAction.class.php
View file @
ef5019e1
...
...
@@ -195,7 +195,8 @@ class CenterAction extends Action
$data
[
'title'
]
=
$json
[
"title"
];
$data
[
'code'
]
=
$json
[
"id"
];
$data
[
'description'
]
=
$json
[
"description"
];
$data
[
'url_play'
]
=
$json
[
"playUrl"
];
// $data['url_play'] = $json["playUrl"];
$data
[
'url_play'
]
=
str_replace
(
"hudongts.wasu.tv"
,
"huawei-hd.wasu.tv"
,
$json
[
"playUrl"
]);
$data
[
'url_pic'
]
=
$this
->
remakeImageUrlForCache
(
$json
[
"picUrl"
]);
$data
[
'year'
]
=
substr
(
$json
[
"year"
],
0
,
4
);
$data
[
'score'
]
=
floatval
(
$json
[
"score"
]);
...
...
@@ -494,10 +495,14 @@ class CenterAction extends Action
// echo "<br/>";
// echo $json;
// exit;
if
(
empty
(
$list
))
{
$jsonR
[
"code"
]
=
0
;
}
else
{
$data
=
$this
->
HttpPost
(
$api_push
,
$json
);
// echo "post result: ".$data;
$jsonR
=
json_decode
(
$data
,
true
);
}
if
(
$jsonR
[
"code"
]
==
0
)
{
//最后一页推送成功:更新offset
...
...
This diff is collapsed.
Click to expand it.
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