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
9221b663
Commit
9221b663
authored
Jun 24, 2020
by
chenlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
今日使用情况-激活房源剩余修复
parent
c0d04fe1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
sell.php
new_admincp/applications/zsb/controllers/sell.php
+4
-1
welcome.php
new_admincp/applications/zsb/controllers/welcome.php
+5
-1
No files found.
new_admincp/applications/zsb/controllers/sell.php
View file @
9221b663
...
@@ -4492,7 +4492,10 @@ class Sell extends MY_Controller {
...
@@ -4492,7 +4492,10 @@ class Sell extends MY_Controller {
$this
->
load
->
model
(
'statistics_model'
,
'stat'
);
$this
->
load
->
model
(
'statistics_model'
,
'stat'
);
$this
->
load
->
model
(
'broker_package_model'
,
'broker_package'
);
$this
->
load
->
model
(
'broker_package_model'
,
'broker_package'
);
//套餐房源个数
//套餐房源个数
$post_limit
=
intval
(
$this
->
user_arr
[
'postlimit'
]);
$package_id
=
$this
->
user_arr
[
'package_id'
];
$this
->
load
->
model
(
'package_model'
);
$package
=
$this
->
package_model
->
find_by_id
(
$package_id
);
$post_limit
=
$package
[
'package_valid_num'
];
//激活出售
//激活出售
$statistic_data
[
'sell_count'
]
=
$this
->
stat
->
sellCount
(
$uid
);
$statistic_data
[
'sell_count'
]
=
$this
->
stat
->
sellCount
(
$uid
);
//激活出租
//激活出租
...
...
new_admincp/applications/zsb/controllers/welcome.php
View file @
9221b663
...
@@ -688,7 +688,11 @@ class Welcome extends MY_Controller
...
@@ -688,7 +688,11 @@ class Welcome extends MY_Controller
//房源剩余量
//房源剩余量
private
function
remain_house_num
(
$today_stat
)
private
function
remain_house_num
(
$today_stat
)
{
{
$house_remain
=
intval
(
$this
->
uid_arr
[
'postlimit'
]
-
intval
(
$today_stat
[
'sellCount'
]
+
$today_stat
[
'rentCount'
]));
$package_id
=
$this
->
user_arr
[
'package_id'
];
$this
->
load
->
model
(
'package_model'
);
$package
=
$this
->
package_model
->
find_by_id
(
$package_id
);
$post_limit
=
$package
[
'package_valid_num'
];
$house_remain
=
intval
(
$post_limit
-
intval
(
$today_stat
[
'sellCount'
]
+
$today_stat
[
'rentCount'
]));
$house_remain
=
$house_remain
<
0
?
0
:
$house_remain
;
$house_remain
=
$house_remain
<
0
?
0
:
$house_remain
;
return
$house_remain
;
return
$house_remain
;
}
}
...
...
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