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
928a3d19
Commit
928a3d19
authored
Apr 29, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vip盘编辑
parent
8e01d6aa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
3 deletions
+14
-3
Shop.php
application/api_broker/controller/Shop.php
+10
-0
PrivacyNumber.php
application/task/controller/PrivacyNumber.php
+4
-3
No files found.
application/api_broker/controller/Shop.php
View file @
928a3d19
...
@@ -711,6 +711,16 @@ class Shop extends Basic
...
@@ -711,6 +711,16 @@ class Shop extends Basic
$result
[
'is_upload_video'
]
=
0
;
$result
[
'is_upload_video'
]
=
0
;
}
}
}
}
//vip盘编辑
$result
[
'is_auth_vip'
]
=
1
;
if
(
$result
[
'is_vip'
]
==
1
)
{
$check
=
new
VipService
();
if
(
$check
->
checkRule
(
$this
->
agentId
,
'index/vipHouse'
))
{
$result
[
'is_auth_vip'
]
=
0
;
}
}
unset
(
$result
[
'external_image_id'
]);
unset
(
$result
[
'external_image_id'
]);
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
return
$this
->
response
(
"200"
,
'request success'
,
$result
);
}
}
...
...
application/task/controller/PrivacyNumber.php
View file @
928a3d19
...
@@ -625,10 +625,11 @@ class PrivacyNumber
...
@@ -625,10 +625,11 @@ class PrivacyNumber
}
}
foreach
(
$result
as
$k
=>
$v
)
{
foreach
(
$result
as
$k
=>
$v
)
{
if
(
(
empty
(
$v
[
'call_id'
])
&&
empty
(
$v
[
'call_time'
])
)
||
!
empty
(
$secret_data
[
'record_down'
])){
if
(
empty
(
$v
[
'call_id'
])
||
empty
(
$v
[
'call_time'
])
||
empty
(
$v
[
'call_id'
]
)
||
!
empty
(
$secret_data
[
'record_down'
])){
continue
;
continue
;
}
}
$where
[
'call_id'
]
=
$v
[
'call_id'
];
$where
[
'call_id'
]
=
$v
[
'call_id'
];
$where
[
'sub_id'
]
=
$v
[
'sub_id'
];
$where
[
'call_time'
]
=
$v
[
'call_time'
];
$where
[
'call_time'
]
=
$v
[
'call_time'
];
try
{
try
{
$secret_data
=
$m_secret_report
->
getFindData
(
$filed_string
,
$where
);
$secret_data
=
$m_secret_report
->
getFindData
(
$filed_string
,
$where
);
...
@@ -638,7 +639,6 @@ class PrivacyNumber
...
@@ -638,7 +639,6 @@ class PrivacyNumber
return
;
return
;
}
}
if
(
isset
(
$result_data
->
Message
)
&&
$result_data
->
Message
==
'OK'
)
{
if
(
isset
(
$result_data
->
Message
)
&&
$result_data
->
Message
==
'OK'
)
{
$down_url
=
isset
(
$result_data
->
DownloadUrl
)
?
explode
(
'?'
,
$result_data
->
DownloadUrl
)
:
$result_data
->
DownloadUrl
;
$down_url
=
isset
(
$result_data
->
DownloadUrl
)
?
explode
(
'?'
,
$result_data
->
DownloadUrl
)
:
$result_data
->
DownloadUrl
;
$file_name
=
basename
(
$down_url
[
0
]);
$file_name
=
basename
(
$down_url
[
0
]);
...
@@ -655,6 +655,7 @@ class PrivacyNumber
...
@@ -655,6 +655,7 @@ class PrivacyNumber
if
(
isset
(
$update_data
))
{
if
(
isset
(
$update_data
))
{
try
{
try
{
$m_secret_report
->
insertDataAll
(
$update_data
);
$m_secret_report
->
insertDataAll
(
$update_data
);
Log
::
write
(
json_encode
(
$update_data
),
'voice_down_callBack_update'
);
//记录日志
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
Log
::
write
(
$e
->
getMessage
(),
'voice_down_callBack_save_error'
);
//记录日志
Log
::
write
(
$e
->
getMessage
(),
'voice_down_callBack_save_error'
);
//记录日志
return
;
return
;
...
...
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