Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
services
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tencent
services
Commits
452e3f7d
Commit
452e3f7d
authored
Oct 15, 2018
by
xmy
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
a33a1922
8090be93
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
src/Common/Entity/Split.php
+6
-0
No files found.
src/Common/Entity/Split.php
View file @
452e3f7d
...
@@ -63,7 +63,13 @@ class Split
...
@@ -63,7 +63,13 @@ class Split
$splitCollector
=
SplitCollector
::
getCollector
();
$splitCollector
=
SplitCollector
::
getCollector
();
$splitNum
=
$splitCollector
[
$className
][
'num'
];
$splitNum
=
$splitCollector
[
$className
][
'num'
];
$data
=
RequestContext
::
getContextData
();
$data
=
RequestContext
::
getContextData
();
$dbNum
=
$data
[
'dbNum'
];
if
(
!
empty
(
$dbNum
)
)
{
//若手动设置的分表信息则直接返回设置的表号
return
$dbNum
;
}
$storeId
=
$data
[
'userInfo'
][
'storeId'
];
$storeId
=
$data
[
'userInfo'
][
'storeId'
];
if
(
empty
(
$storeId
)
)
{
if
(
empty
(
$storeId
)
)
{
throw
new
CommonException
([
"msg"
=>
"参数异常,获取店铺信息失败。"
]);
throw
new
CommonException
([
"msg"
=>
"参数异常,获取店铺信息失败。"
]);
}
}
...
...
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