Commit 928a3d19 authored by hujun's avatar hujun

vip盘编辑

parent 8e01d6aa
......@@ -711,6 +711,16 @@ class Shop extends Basic
$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']);
return $this->response("200", 'request success', $result);
}
......
......@@ -625,10 +625,11 @@ class PrivacyNumber
}
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;
}
$where['call_id'] = $v['call_id'];
$where['call_id'] = $v['call_id'];
$where['sub_id'] = $v['sub_id'];
$where['call_time'] = $v['call_time'];
try {
$secret_data = $m_secret_report->getFindData($filed_string, $where);
......@@ -638,7 +639,6 @@ class PrivacyNumber
return ;
}
if (isset($result_data->Message) && $result_data->Message == 'OK') {
$down_url = isset($result_data->DownloadUrl) ? explode('?', $result_data->DownloadUrl) : $result_data->DownloadUrl;
$file_name = basename($down_url[0]);
......@@ -655,6 +655,7 @@ class PrivacyNumber
if (isset($update_data)) {
try {
$m_secret_report->insertDataAll($update_data);
Log::write(json_encode($update_data), 'voice_down_callBack_update'); //记录日志
} catch (\Exception $e) {
Log::write($e->getMessage(), 'voice_down_callBack_save_error'); //记录日志
return ;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment