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
b7a5b6ac
Commit
b7a5b6ac
authored
Jun 07, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
45a1504c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
Index.php
application/api/controller/Index.php
+13
-8
No files found.
application/api/controller/Index.php
View file @
b7a5b6ac
<?php
namespace
app\api\controller
;
/**
* Created by PhpStorm.
* User : zw
...
...
@@ -18,14 +20,16 @@ use app\model\Users;
class
Index
extends
Basic
{
public
function
banner
(){
public
function
banner
()
{
}
/**
* 月均价 上周成交量 ==>修改为日均价了
* 月均价 上周成交量 ==>修改为日均价了
==》改成求租人
*/
public
function
averagePriceAndTurnover
(){
public
function
averagePriceAndTurnover
()
{
/* $houseInfos = new GHouses();
$averagePrice = $houseInfos->getAveragePrice();*/
...
...
@@ -33,10 +37,10 @@ class Index extends Basic
$user_count
=
$userModel
->
countUser
();
// $journalAccounts = new JournalAccounts();
$journalAccounts
=
new
OrderModel
();
$turnover
=
$journalAccounts
->
getTurnover
();
$turnover
=
$journalAccounts
->
getTurnover
();
$result
[
'averagePrice'
]
=
$user_count
;
$result
[
'turnover'
]
=
$turnover
*
9
;
return
$this
->
response
(
"request success"
,
"200"
,
$result
);
$result
[
'turnover'
]
=
$turnover
*
9
;
//不要问为什么乘以9,产品说怎么搞就怎么搞
return
$this
->
response
(
"request success"
,
"200"
,
$result
);
}
...
...
@@ -45,7 +49,8 @@ class Index extends Basic
*
* @return type
*/
public
function
miss
()
{
return
$this
->
response
(
'101'
,
'URL is error'
);
public
function
miss
()
{
return
$this
->
response
(
'101'
,
'URL is error'
);
}
}
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