Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
施宇
/
icsales
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
5a4a9367
authored
Aug 14, 2019
by
叶明星
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
zc
parent
30aad146
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
23 additions
and
8 deletions
.idea/workspace.xml
Application/Common/Conf/config.php
Application/Common/Controller/BaseController.class.php
Application/Home/Controller/IndexController.class.php
Application/Passport/Conf/config_url.php
Application/Passport/Controller/IndexController.class.php
Application/Search/Conf/config_url.php
Application/Search/Controller/IndexController.class.php
.idea/workspace.xml
View file @
5a4a9367
This diff is collapsed.
Click to expand it.
Application/Common/Conf/config.php
View file @
5a4a9367
...
...
@@ -8,7 +8,8 @@ return array(
'www'
=>
'Index'
,
'home'
=>
'Home'
,
'search'
=>
'Search'
,
'item'
=>
'Item'
'item'
=>
'Item'
,
'passport'
=>
'Passport'
),
'API_TOKEN'
=>
'zbPx8gDXDfIh3ZoJcO4EH'
,
// api接口token
...
...
Application/Common/Controller/BaseController.class.php
View file @
5a4a9367
...
...
@@ -15,7 +15,12 @@ class BaseController extends Controller
}
}
/**
public
function
__call
(
$method
,
$args
)
{
$this
->
redirect
(
'/login'
);
}
/**
* 通过bcat_id获取CMS分类数据 --- 图片、文字等
* @param [type] $tags [标签]
* @param [type] $where [搜索条件,用&连接,如:a=1&b=2]
...
...
Application/Home/Controller/IndexController.class.php
View file @
5a4a9367
...
...
@@ -11,7 +11,7 @@ class IndexController extends BaseController
{
parent
::
_initialize
();
if
(
!
cookie
(
'token'
))
{
$this
->
redirect
(
'/login'
);
redirect
(
C
(
'TMPL_PARSE_STRING.passporticsales'
)
);
}
}
...
...
Application/Passport/Conf/config_url.php
View file @
5a4a9367
<?php
return
array
(
'URL_MAP_RULES'
=>
array
(
//静态路由
'login'
=>
'Home/Index/login'
,
'register'
=>
'Home/Index/register'
,
'forget'
=>
'Home/Index/forget'
,
'index'
=>
'Index/index'
,
'login'
=>
'Index/login'
,
'register'
=>
'Index/register'
,
'forget'
=>
'Index/forget'
,
)
);
Application/Passport/Controller/IndexController.class.php
View file @
5a4a9367
...
...
@@ -9,6 +9,14 @@ class IndexController extends BaseController
/**
* 登录页面
*/
public
function
index
()
{
$this
->
display
(
'Login/index'
);
}
/**
* 登录页面
*/
public
function
login
()
{
$this
->
display
(
'Login/index'
);
...
...
Application/Search/Conf/config_url.php
View file @
5a4a9367
<?php
return
array
(
'URL_ROUTE_RULES'
=>
array
(
//动态路由
'/^(\w+)_(\d+)_(\d+)$/'
=>
'Index/index
search
?key=:1&type=:2&time=:3'
,
'/^(\w+)_(\d+)_(\d+)$/'
=>
'Index/index?key=:1&type=:2&time=:3'
,
)
);
Application/Search/Controller/IndexController.class.php
View file @
5a4a9367
...
...
@@ -9,7 +9,7 @@ class IndexController extends BaseController
/**
* 首页搜索结果
*/
public
function
index
search
()
public
function
index
()
{
$this
->
display
(
'Index/search'
);
}
...
...
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