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
561735c2
Commit
561735c2
authored
Sep 21, 2018
by
liuyuzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地址cityCode错误
parent
b04f8c97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
0 deletions
+5
-0
AddressService.php
application/models/Business/User/AddressService.php
+3
-0
CodeConfig.php
application/models/Error/CodeConfig.php
+2
-0
No files found.
application/models/Business/User/AddressService.php
View file @
561735c2
...
...
@@ -553,6 +553,9 @@ class AddressServiceModel extends \Business\AbstractModel {
if
(
!
(
$address
[
'citycode'
])){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
emptyCityCodeForSave
);
}
if
(
intval
(
$address
[
'citycode'
])
<=
0
){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
wrongCityCode
);
}
if
(
!
(
$address
[
'lng'
]
&&
$address
[
'lat'
])){
\Error\ErrorModel
::
throwException
(
\Error\CodeConfigModel
::
chooseAddressFormMap
);
}
...
...
application/models/Error/CodeConfig.php
View file @
561735c2
...
...
@@ -367,6 +367,7 @@ class CodeConfigModel {
const
emptyDistrictId
=
140020
;
const
emptyAddressAndName
=
140021
;
const
wrongAddressTagType
=
140022
;
const
wrongCityCode
=
140023
;
//消息,推送等
const
removeMessage
=
150001
;
...
...
@@ -599,6 +600,7 @@ class CodeConfigModel {
self
::
emptyDistrictId
=>
'找不到对应区'
,
self
::
emptyAddressAndName
=>
'地址和具体街道不能为空'
,
self
::
wrongAddressTagType
=>
'地址标签传输错误'
,
self
::
wrongCityCode
=>
'城市码格式错误'
,
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