Commit ef5019e1 authored by 吴贤德's avatar 吴贤德

中心接口调整

parent af77289d
...@@ -49,23 +49,23 @@ return array( ...@@ -49,23 +49,23 @@ return array(
'VAR_TEMPLATE'=>'l',//与语言参数使用相同参数,实现多语言支持 '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_TYPE' => 'mysqli', //mysql ,mysqli
'DB_HOST' => '192.168.200.24', 'DB_HOST' => '47.99.247.16',
'DB_NAME' =>'soooner_hotel', 'DB_NAME' =>'soooner_hotel',
'DB_USER' =>'root', 'DB_USER' =>'root',
'DB_PWD' =>'hezuo123456', 'DB_PWD' =>'atomicytl',
'DB_PORT' =>'3306', 'DB_PORT' =>'23306',
'DB_PREFIX' =>'', '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认证配置
//'RBAC_SUPERADMIN'=>'sysadmin', //'RBAC_SUPERADMIN'=>'sysadmin',
//'ADMIN_AUTH_KEY'=>'sysadmin', //'ADMIN_AUTH_KEY'=>'sysadmin',
...@@ -76,8 +76,8 @@ return array( ...@@ -76,8 +76,8 @@ return array(
'NOT_AUTH_MODULE'=>'Index,Help', //无需认证模块 'NOT_AUTH_MODULE'=>'Index,Help', //无需认证模块
'NOT_AUTH_ACTION'=>'addRoleHandle', //无需认证模块 'NOT_AUTH_ACTION'=>'addRoleHandle', //无需认证模块
// 'USER_AUTH_GATEWAY'=>'/Login/loginDo', //认证网关 // 'USER_AUTH_GATEWAY'=>'/Login/loginDo', //认证网关
'RBAC_DB_DSN'=>'mysql://root:hezuo123456@192.168.200.24:3306/soooner_hotel', //内网测试 // '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:atomicytl@47.99.247.16:23306/soooner_hotel', //wasu
'RBAC_ROLE_TABLE'=>'rbac_role', //角色表名称 'RBAC_ROLE_TABLE'=>'rbac_role', //角色表名称
'RBAC_USER_TABLE'=>'rbac_role_user', //用户表名称 'RBAC_USER_TABLE'=>'rbac_role_user', //用户表名称
'RBAC_ACCESS_TABLE'=>'rbac_access', //权限表名称 'RBAC_ACCESS_TABLE'=>'rbac_access', //权限表名称
......
...@@ -195,7 +195,8 @@ class CenterAction extends Action ...@@ -195,7 +195,8 @@ class CenterAction extends Action
$data['title'] = $json["title"]; $data['title'] = $json["title"];
$data['code'] = $json["id"]; $data['code'] = $json["id"];
$data['description'] = $json["description"]; $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['url_pic'] = $this->remakeImageUrlForCache($json["picUrl"]);
$data['year'] = substr($json["year"],0,4); $data['year'] = substr($json["year"],0,4);
$data['score'] = floatval($json["score"]); $data['score'] = floatval($json["score"]);
...@@ -494,10 +495,14 @@ class CenterAction extends Action ...@@ -494,10 +495,14 @@ class CenterAction extends Action
// echo "<br/>"; // echo "<br/>";
// echo $json; // echo $json;
// exit; // exit;
if(empty($list))
{
$jsonR["code"]=0;
}else {
$data = $this->HttpPost($api_push, $json); $data = $this->HttpPost($api_push, $json);
// echo "post result: ".$data;
$jsonR = json_decode($data, true); $jsonR = json_decode($data, true);
}
if ($jsonR["code"] == 0) { if ($jsonR["code"] == 0) {
//最后一页推送成功:更新offset //最后一页推送成功:更新offset
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment