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
3c18f087
Commit
3c18f087
authored
May 28, 2024
by
梅玉龙
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
dc5beaf0
4962fa72
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
1 deletion
+9
-1
zsb_api_model.php
new_admincp/applications/models/zsb_api_model.php
+1
-1
sell.php
new_admincp/applications/zsb/controllers/sell.php
+8
-0
No files found.
new_admincp/applications/models/zsb_api_model.php
View file @
3c18f087
...
@@ -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://
local
newrent.house365.com'
;
private
$host
=
'http://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'
;
...
...
new_admincp/applications/zsb/controllers/sell.php
View file @
3c18f087
...
@@ -7117,6 +7117,14 @@ class Sell extends MY_Controller {
...
@@ -7117,6 +7117,14 @@ class Sell extends MY_Controller {
}
}
$averprice
=
round
(
10000
*
$new_price
/
$house
[
'buildarea'
],
2
);
$averprice
=
round
(
10000
*
$new_price
/
$house
[
'buildarea'
],
2
);
$this
->
sell_model
->
update
(
array
(
'price'
=>
$new_price
,
'averprice'
=>
$averprice
),
$hid
,
$uid
);
$this
->
sell_model
->
update
(
array
(
'price'
=>
$new_price
,
'averprice'
=>
$averprice
),
$hid
,
$uid
);
//添加调价记录
$this
->
load
->
model
(
'zsb_api_model'
);
$change_params
=
array
(
'tbl'
=>
'sell'
,
'house_id'
=>
$hid
,
'price'
=>
$old_price
,
);
$this
->
zsb_api_model
->
getRequrstData
(
'add_change_price_log'
,
$change_params
);
echo
json_encode
(
array
(
'result'
=>
1
,
'msg'
=>
iconv
(
'gb2312'
,
'utf-8'
,
'调价成功'
)));
echo
json_encode
(
array
(
'result'
=>
1
,
'msg'
=>
iconv
(
'gb2312'
,
'utf-8'
,
'调价成功'
)));
}
}
...
...
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