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
c20dce3f
Commit
c20dce3f
authored
Sep 07, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地址管理
parent
4d97f9a8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
0 deletions
+6
-0
AddressService.php
application/models/Business/User/AddressService.php
+3
-0
StoreOnlineGoodsClass.php
application/models/DAO/GoodsClass/StoreOnlineGoodsClass.php
+1
-0
CodeConfig.php
application/models/Error/CodeConfig.php
+2
-0
No files found.
application/models/Business/User/AddressService.php
View file @
c20dce3f
...
...
@@ -454,6 +454,9 @@ class AddressServiceModel extends \Business\AbstractModel {
if
(
!
(
$address
[
'address'
]
&&
$address
[
'name'
])){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyAddressAndName
);
}
if
(
!
(
$address
[
'tag_type'
]
>=
\Our\ApiConst
::
zero
&&
$address
[
'tag_type'
]
<=
3
)){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
wrongAddressTagType
);
}
if
(
$province
){
$province
=
mb_substr
(
$province
,
0
,
2
);
$provinceList
=
$areaList
[
\Our\ApiConst
::
zero
];
...
...
application/models/DAO/GoodsClass/StoreOnlineGoodsClass.php
View file @
c20dce3f
...
...
@@ -36,6 +36,7 @@ class StoreOnlineGoodsClassModel extends \DAO\AbstractModel{
public
function
insert
(
$data
){
$this
->
setDb
(
\Our\DbNameConst
::
masterDBConnectName
);
$data
[
'gmt_create'
]
=
TIMESTAMP
;
$data
[
'gmt_update'
]
=
TIMESTAMP
;
$result
=
$this
->
db
->
insert
(
$this
->
_tableName
)
->
rows
(
$data
)
->
execute
();
if
(
$result
){
$storeId
=
$data
[
'store_id'
];
...
...
application/models/Error/CodeConfig.php
View file @
c20dce3f
...
...
@@ -354,6 +354,7 @@ const notAllowDelete=300114;
const
emptyCityId
=
140019
;
const
emptyDistrictId
=
140020
;
const
emptyAddressAndName
=
140021
;
const
wrongAddressTagType
=
140022
;
//消息,推送等
const
removeMessage
=
150001
;
...
...
@@ -580,6 +581,7 @@ const notAllowDelete=300114;
self
::
emptyCityId
=>
'找不到对应城市'
,
self
::
emptyDistrictId
=>
'找不到对应区'
,
self
::
emptyAddressAndName
=>
'地址和具体街道不能为空'
,
self
::
wrongAddressTagType
=>
'地址标签传输错误'
,
self
::
emptyLatLng
=>
'经纬度不能为空'
,
self
::
emptyCityCode
=>
'高德地图城市编码不能为空'
,
...
...
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