Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fenzhan_zsb
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
esf
fenzhan_zsb
Commits
dc5beaf0
Commit
dc5beaf0
authored
Jan 30, 2024
by
yanghui
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into release_preview
parents
f9c19ab0
71a06dca
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
4 deletions
+28
-4
zsb_api_model.php
new_admincp/applications/models/zsb_api_model.php
+2
-1
rent.php
new_admincp/applications/zsb/controllers/rent.php
+14
-1
sell.php
new_admincp/applications/zsb/controllers/sell.php
+10
-0
rent_modify.php
new_admincp/applications/zsb/views/nj/rent_modify.php
+2
-2
No files found.
new_admincp/applications/models/zsb_api_model.php
View file @
dc5beaf0
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
class
zsb_api_model
extends
MY_Model
{
class
zsb_api_model
extends
MY_Model
{
private
$host
=
'http://newrent.house365.com'
;
private
$host
=
'http://
local
newrent.house365.com'
;
private
$apiSource
=
'PC'
;
// 访问API使用的公用source
private
$apiSource
=
'PC'
;
// 访问API使用的公用source
private
$apiVersion
=
'1.0.1'
;
// 访问API使用的公用版本号
private
$apiVersion
=
'1.0.1'
;
// 访问API使用的公用版本号
private
$token
=
'ZSB_API'
;
private
$token
=
'ZSB_API'
;
...
@@ -32,6 +32,7 @@ class zsb_api_model extends MY_Model{
...
@@ -32,6 +32,7 @@ class zsb_api_model extends MY_Model{
'uc_login'
=>
'/zsbapi/broker/uc-login'
,
// 登录
'uc_login'
=>
'/zsbapi/broker/uc-login'
,
// 登录
'uc_update'
=>
'/zsbapi/broker/uc-update'
,
// 更新经纪人信息
'uc_update'
=>
'/zsbapi/broker/uc-update'
,
// 更新经纪人信息
'change_uc_phone'
=>
'/zsbapi/broker/change-uc-phone'
,
// 更改经纪人手机号码
'change_uc_phone'
=>
'/zsbapi/broker/change-uc-phone'
,
// 更改经纪人手机号码
'add_change_price_log'
=>
'/api/tf-app/add-house-price-log'
,
// 添加房源修改价格日志
);
);
...
...
new_admincp/applications/zsb/controllers/rent.php
View file @
dc5beaf0
...
@@ -1028,7 +1028,7 @@ class Rent extends MY_Controller {
...
@@ -1028,7 +1028,7 @@ class Rent extends MY_Controller {
$house_id
=
$this
->
input
->
post
(
'id'
,
true
);
$house_id
=
$this
->
input
->
post
(
'id'
,
true
);
$url_manage
=
$this
->
rent_model
->
find_func_url
();
$url_manage
=
$this
->
rent_model
->
find_func_url
();
//查询房源没修改之前的信息
//查询房源没修改之前的信息
$this
->
rent_model
->
set_select_fields
(
array
(
'isstar'
,
'esta'
));
$this
->
rent_model
->
set_select_fields
(
array
(
'isstar'
,
'esta'
,
'price'
,
'priceunit'
));
$before_info
=
$this
->
rent_model
->
find_by_id
(
$house_id
);
$before_info
=
$this
->
rent_model
->
find_by_id
(
$house_id
);
//防止模拟提交房源数据 xue 2015-06-16
//防止模拟提交房源数据 xue 2015-06-16
//提交验证随机码
//提交验证随机码
...
@@ -1422,6 +1422,19 @@ class Rent extends MY_Controller {
...
@@ -1422,6 +1422,19 @@ class Rent extends MY_Controller {
}
}
//$page_text = '房源修改成功!' . $growthMessage;
//$page_text = '房源修改成功!' . $growthMessage;
$page_text
=
'房源修改成功!'
;
$page_text
=
'房源修改成功!'
;
//房价修改日志记录
if
((
isset
(
$fields_values
[
'price'
])
&&
floatval
(
$fields_values
[
'price'
])
!=
floatval
(
$before_info
[
'price'
]))
||
(
isset
(
$fields_values
[
'priceunit'
])
&&
intval
(
$fields_values
[
'priceunit'
])
!=
intval
(
$before_info
[
'priceunit'
])))
{
$this
->
load
->
model
(
'zsb_api_model'
);
$change_params
=
array
(
'tbl'
=>
'rent'
,
'house_id'
=>
$house_id
,
'price'
=>
$before_info
[
'price'
],
'unit'
=>
$before_info
[
'priceunit'
],
);
$this
->
zsb_api_model
->
getRequrstData
(
'add_change_price_log'
,
$change_params
);
}
}
}
else
else
{
{
...
...
new_admincp/applications/zsb/controllers/sell.php
View file @
dc5beaf0
...
@@ -3028,6 +3028,16 @@ class Sell extends MY_Controller {
...
@@ -3028,6 +3028,16 @@ class Sell extends MY_Controller {
'stand_remark'
=>
$standRemark
,
'stand_remark'
=>
$standRemark
,
'service_remark'
=>
$serviceRemark
,
'service_remark'
=>
$serviceRemark
,
));
));
//添加价格变更记录
if
(
isset
(
$fields_values
[
'price'
])
&&
floatval
(
$fields_values
[
'price'
])
!=
floatval
(
$before_info
[
'price'
]))
{
$this
->
load
->
model
(
'zsb_api_model'
);
$change_params
=
array
(
'tbl'
=>
'sell'
,
'house_id'
=>
$house_id
,
'price'
=>
$before_info
[
'price'
],
);
$this
->
zsb_api_model
->
getRequrstData
(
'add_change_price_log'
,
$change_params
);
}
//添加房源发布价格日志信息
//添加房源发布价格日志信息
$this
->
load
->
model
(
'house_publish_rule_log_model'
);
$this
->
load
->
model
(
'house_publish_rule_log_model'
);
$housePublishRuleLogData
=
$this
->
house_publish_rule_log_model
->
getRow
(
$house_id
,
1
,
3
,
$uid
);
$housePublishRuleLogData
=
$this
->
house_publish_rule_log_model
->
getRow
(
$house_id
,
1
,
3
,
$uid
);
...
...
new_admincp/applications/zsb/views/nj/rent_modify.php
View file @
dc5beaf0
...
@@ -837,7 +837,7 @@ if (isset($publish_block) && !empty($publish_block)) {
...
@@ -837,7 +837,7 @@ if (isset($publish_block) && !empty($publish_block)) {
if
(
renttype
==
'整租'
){
if
(
renttype
==
'整租'
){
$
(
".areaName"
).
html
(
'总面积:'
);
$
(
".areaName"
).
html
(
'总面积:'
);
}
else
{
}
else
{
$
(
".areaName"
).
html
(
'房
屋
面积:'
);
$
(
".areaName"
).
html
(
'房
间
面积:'
);
}
}
}
else
{
}
else
{
$
(
".areaName"
).
html
(
'面积:'
);
$
(
".areaName"
).
html
(
'面积:'
);
...
@@ -984,7 +984,7 @@ if (isset($publish_block) && !empty($publish_block)) {
...
@@ -984,7 +984,7 @@ if (isset($publish_block) && !empty($publish_block)) {
if
(
renttype
==
'整租'
){
if
(
renttype
==
'整租'
){
$
(
".areaName"
).
html
(
'总面积:'
);
$
(
".areaName"
).
html
(
'总面积:'
);
}
else
{
}
else
{
$
(
".areaName"
).
html
(
'房
屋
面积:'
);
$
(
".areaName"
).
html
(
'房
间
面积:'
);
}
}
}
else
{
}
else
{
$
(
".areaName"
).
html
(
'面积:'
);
$
(
".areaName"
).
html
(
'面积:'
);
...
...
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