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
7ca7cb55
Commit
7ca7cb55
authored
Nov 03, 2018
by
wwccw0591
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc
parent
968062ac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
AbstractClient.php
application/library/Our/Controller/AbstractClient.php
+5
-0
No files found.
application/library/Our/Controller/AbstractClient.php
View file @
7ca7cb55
...
@@ -17,6 +17,9 @@ abstract class Controller_AbstractClient extends \Our\Controller_Abstract {
...
@@ -17,6 +17,9 @@ abstract class Controller_AbstractClient extends \Our\Controller_Abstract {
public
$key
;
public
$key
;
public
$req
;
public
$req
;
public
$memberId
;
public
$memberId
;
public
$storeId
;
public
$sellerName
;
public
$sellerId
;
/**
/**
* api控制器直接输出json格式数据,不需要渲染视图
* api控制器直接输出json格式数据,不需要渲染视图
*/
*/
...
@@ -32,6 +35,8 @@ abstract class Controller_AbstractClient extends \Our\Controller_Abstract {
...
@@ -32,6 +35,8 @@ abstract class Controller_AbstractClient extends \Our\Controller_Abstract {
$sess
->
start
();
$sess
->
start
();
$this
->
memberId
=
$sess
->
get
(
'member_id'
);
$this
->
memberId
=
$sess
->
get
(
'member_id'
);
$this
->
storeId
=
$sess
->
get
(
'store_id'
);
$this
->
storeId
=
$sess
->
get
(
'store_id'
);
$this
->
sellerName
=
$sess
->
get
(
'seller_name'
);
$this
->
sellerId
=
$sess
->
get
(
'seller_id'
);
if
(
empty
(
$this
->
memberId
)){
if
(
empty
(
$this
->
memberId
)){
ErrorModel
::
throwException
(
CodeConfigModel
::
noLogin
);
ErrorModel
::
throwException
(
CodeConfigModel
::
noLogin
);
}
}
...
...
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