Commit f12d95ff by feixiang

分表逻辑处理

parent 9d9585e0
...@@ -66,7 +66,7 @@ class Split ...@@ -66,7 +66,7 @@ class Split
$storeId = $data['userInfo']['storeId']; $storeId = $data['userInfo']['storeId'];
if ( $storeId === null ) { if ( empty($storeId) ) {
throw new CommonException(["msg" => "参数异常,获取店铺信息失败。"]); throw new CommonException(["msg" => "参数异常,获取店铺信息失败。"]);
} }
return $storeId % $splitNum; return $storeId % $splitNum;
......
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