Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
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
hujun
tl_estate
Commits
ead1a4e2
Commit
ead1a4e2
authored
Jan 03, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
f5ac8c01
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
11 deletions
+9
-11
AppointmentTime.php
application/api/controller/AppointmentTime.php
+3
-5
Sublet.php
application/api/controller/Sublet.php
+6
-6
No files found.
application/api/controller/AppointmentTime.php
View file @
ead1a4e2
...
@@ -74,11 +74,11 @@ class AppointmentTime extends Basic
...
@@ -74,11 +74,11 @@ class AppointmentTime extends Basic
}
}
$addPrams
=
array
(
$addPrams
=
array
(
'expect_time'
=>
date
(
"Y-m-d H:i:s"
,
$params
[
"expect_time"
]
/
1000
),
'expect_time'
=>
date
(
"Y-m-d H:i:s"
,
$params
[
"expect_time"
]
/
1000
),
'phone'
=>
$params
[
"phone"
],
'phone'
=>
$params
[
"phone"
],
'house_title'
=>
$params
[
"house_title"
],
'house_title'
=>
$params
[
"house_title"
],
'house_id'
=>
$params
[
"house_id"
],
'house_id'
=>
$params
[
"house_id"
],
'appellation'
=>
$params
[
"appellation"
],
'appellation'
=>
$params
[
"appellation"
],
'user_id'
=>
$params
[
"user_id"
],
'user_id'
=>
$params
[
"user_id"
],
'create_time'
=>
date
(
"Y-m-d H:i:s"
,
time
()),
'create_time'
=>
date
(
"Y-m-d H:i:s"
,
time
()),
'update_time'
=>
date
(
"Y-m-d H:i:s"
,
time
())
'update_time'
=>
date
(
"Y-m-d H:i:s"
,
time
())
);
);
...
@@ -189,9 +189,7 @@ class AppointmentTime extends Basic
...
@@ -189,9 +189,7 @@ class AppointmentTime extends Basic
$evaluateResult
=
$this
->
evaluateMode
->
getIsEvaluate
(
10
,
$val
[
"id"
],
$params
[
"user_id"
]);
$evaluateResult
=
$this
->
evaluateMode
->
getIsEvaluate
(
10
,
$val
[
"id"
],
$params
[
"user_id"
]);
$result
[
$key
][
"is_evaluate"
]
=
count
(
$evaluateResult
)
>
0
?
1
:
0
;
$result
[
$key
][
"is_evaluate"
]
=
count
(
$evaluateResult
)
>
0
?
1
:
0
;
}
}
return
$result
;
return
$result
;
}
}
...
...
application/api/controller/Sublet.php
View file @
ead1a4e2
...
@@ -41,11 +41,11 @@ class Sublet extends Basic
...
@@ -41,11 +41,11 @@ class Sublet extends Basic
if
(
!
isset
(
$params
[
"manage_type"
]))
{
if
(
!
isset
(
$params
[
"manage_type"
]))
{
$this
->
response
(
"101"
,
"经营业态不能为空"
);
return
$this
->
response
(
"101"
,
"经营业态不能为空"
);
}
}
if
(
!
isset
(
$params
[
"address_detail"
]))
{
if
(
!
isset
(
$params
[
"address_detail"
]))
{
$this
->
response
(
"101"
,
"详细地址不能为空"
);
return
$this
->
response
(
"101"
,
"详细地址不能为空"
);
}
}
/* if (!isset($params["province"]) || !isset($params["province_code"]) || !isset($params["city"]) ||
/* if (!isset($params["province"]) || !isset($params["province_code"]) || !isset($params["city"]) ||
...
@@ -54,21 +54,21 @@ class Sublet extends Basic
...
@@ -54,21 +54,21 @@ class Sublet extends Basic
}*/
}*/
if
(
!
isset
(
$params
[
"province"
])
||
!
isset
(
$params
[
"city"
])
||
!
isset
(
$params
[
"district"
]))
{
if
(
!
isset
(
$params
[
"province"
])
||
!
isset
(
$params
[
"city"
])
||
!
isset
(
$params
[
"district"
]))
{
$this
->
response
(
"101"
,
"省市区不能为空"
);
return
$this
->
response
(
"101"
,
"省市区不能为空"
);
}
}
if
(
!
isset
(
$params
[
"expected_rent"
]))
{
if
(
!
isset
(
$params
[
"expected_rent"
]))
{
$this
->
response
(
"101"
,
"期望租金不能为空"
);
return
$this
->
response
(
"101"
,
"期望租金不能为空"
);
}
else
{
}
else
{
$params
[
"expected_rent"
]
=
$params
[
"expected_rent"
]
*
100
;
$params
[
"expected_rent"
]
=
$params
[
"expected_rent"
]
*
100
;
}
}
if
(
!
isset
(
$params
[
"appellation"
]))
{
if
(
!
isset
(
$params
[
"appellation"
]))
{
$this
->
response
(
"101"
,
"称呼不能为空"
);
return
$this
->
response
(
"101"
,
"称呼不能为空"
);
}
}
if
(
!
isset
(
$params
[
"tel"
])
||
!
preg_match
(
'/1[345678]\d{9}/'
,
$params
[
"tel"
]))
{
if
(
!
isset
(
$params
[
"tel"
])
||
!
preg_match
(
'/1[345678]\d{9}/'
,
$params
[
"tel"
]))
{
$this
->
response
(
"101"
,
"手机号检验错误"
);
return
$this
->
response
(
"101"
,
"手机号检验错误"
);
}
}
$params
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$params
[
"create_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$params
[
"update_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
$params
[
"update_time"
]
=
date
(
"Y-m-d H:i:s"
,
time
());
...
...
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