Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
U
User
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
zhangjun
User
Commits
d6f500fa
Commit
d6f500fa
authored
Jun 28, 2024
by
yanghui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
房源收藏
parent
99be487c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
1 deletion
+28
-1
webServers.xml
.idea/webServers.xml
+1
-1
esf_center_api.php
center/controllers/esf_center_api.php
+27
-0
No files found.
.idea/webServers.xml
View file @
d6f500fa
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<webServer
id=
"eac85357-7eee-4562-adfc-dfca1681c7d3"
name=
"192.168.105.107"
url=
"http://192.168.105.107"
>
<webServer
id=
"eac85357-7eee-4562-adfc-dfca1681c7d3"
name=
"192.168.105.107"
url=
"http://192.168.105.107"
>
<fileTransfer
rootFolder=
"/www/webroot/user"
accessType=
"SFTP"
host=
"192.168.105.107"
port=
"22"
sshConfigId=
"24754225-6ff1-470c-a3ce-730207f2b80b"
sshConfig=
"root@192.168.105.107:22 password"
>
<fileTransfer
rootFolder=
"/www/webroot/user"
accessType=
"SFTP"
host=
"192.168.105.107"
port=
"22"
sshConfigId=
"24754225-6ff1-470c-a3ce-730207f2b80b"
sshConfig=
"root@192.168.105.107:22 password"
>
<advancedOptions>
<advancedOptions>
<advancedOptions
dataProtectionLevel=
"Private"
passiveMode=
"true"
shareSSLContext=
"true"
/>
<advancedOptions
dataProtectionLevel=
"Private"
keepAliveTimeout=
"0"
muteSftpMessages=
"true"
passiveMode=
"true"
shareSSLContext=
"true"
/>
</advancedOptions>
</advancedOptions>
</fileTransfer>
</fileTransfer>
</webServer>
</webServer>
...
...
center/controllers/esf_center_api.php
View file @
d6f500fa
<?php
if
(
!
defined
(
'BASEPATH'
))
exit
(
'No direct script access allowed'
);
<?php
if
(
!
defined
(
'BASEPATH'
))
exit
(
'No direct script access allowed'
);
class
Esf_center_api
extends
MY_Controller
{
class
Esf_center_api
extends
MY_Controller
{
var
$newrent_host
=
'http://newrent.house365.com'
;
function
__construct
()
function
__construct
()
{
{
...
@@ -17,6 +18,13 @@ class Esf_center_api extends MY_Controller {
...
@@ -17,6 +18,13 @@ class Esf_center_api extends MY_Controller {
$this
->
load
->
model
(
'rent_coupon_model'
);
$this
->
load
->
model
(
'rent_coupon_model'
);
$this
->
city
=
''
;
$this
->
city
=
''
;
$this
->
user_id
=
0
;
$this
->
user_id
=
0
;
//根据ip是否是127开头判断是否是测试环境
if
(
substr
(
$_SERVER
[
'REMOTE_ADDR'
],
0
,
3
)
==
'127'
)
{
$this
->
newrent_host
=
'http://newrentlocal.house365.com'
;
}
}
}
...
@@ -113,6 +121,25 @@ class Esf_center_api extends MY_Controller {
...
@@ -113,6 +121,25 @@ class Esf_center_api extends MY_Controller {
$telno
=
$this
->
input
->
get
(
'telno'
);
$telno
=
$this
->
input
->
get
(
'telno'
);
$uid
=
$this
->
user_model
->
yztelno
(
$telno
);
$uid
=
$this
->
user_model
->
yztelno
(
$telno
);
}
}
$url
=
$this
->
newrent_host
.
'/api/tf-app-ext/add-house-collect'
;
$postData
=
array
(
'house_id'
=>
$this
->
input
->
get
(
'rowid'
),
'tbl'
=>
$this
->
input
->
get
(
'kind'
)
==
3
?
'sell'
:
'rent'
,
'city'
=>
$this
->
input
->
get
(
'city'
),
'uid'
=>
$uid
,
);
$result
=
SendDataByCurl
(
$url
,
$postData
);
$result
=
$result
?
json_decode
(
$result
,
true
)
:
array
();
$return
=
array
(
'result'
=>
0
,
'msg'
=>
'收藏失败'
);
if
(
!
empty
(
$result
)){
$return
[
'result'
]
=
$result
[
'code'
]
==
0
?
1
:
0
;
//utf8转gbk
$msg
=
$result
[
'msg'
]
?
mb_convert_encoding
(
$result
[
'msg'
],
'gbk'
,
'utf-8'
)
:
''
;
$return
[
'msg'
]
=
$msg
?
$msg
:
(
$return
[
'result'
]
==
1
?
'收藏成功'
:
'收藏失败'
);
}
echo
serialize
(
$return
);
die
();
$flag
=
$this
->
input
->
get
(
'flag'
);
$flag
=
$this
->
input
->
get
(
'flag'
);
if
(
empty
(
$flag
))
if
(
empty
(
$flag
))
{
{
...
...
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