CHANFE_DOWNLOAD_CD_SPLITUP_FILE_ID_MD5
This commit is contained in:
parent
0d0fc15a03
commit
611814db2a
@ -5447,7 +5447,7 @@ class EmployeeRestController extends AdminController
|
|||||||
$file_id = $this->request->getGet('id');
|
$file_id = $this->request->getGet('id');
|
||||||
|
|
||||||
// Find record
|
// Find record
|
||||||
$record = $this->batchFileModel->where('id', $file_id)->first();;
|
$record = $this->batchFileModel->where('MD5(id)', $file_id)->first();
|
||||||
if (!$record) {
|
if (!$record) {
|
||||||
$data['message'] = 'File record not found';
|
$data['message'] = 'File record not found';
|
||||||
return view('errors/404', $data);
|
return view('errors/404', $data);
|
||||||
|
|||||||
@ -316,7 +316,7 @@ class ClientPolicyModel extends Model
|
|||||||
->select('user_profiles.first_name as username')
|
->select('user_profiles.first_name as username')
|
||||||
->select("CASE
|
->select("CASE
|
||||||
WHEN cash_deposit.file_id IS NOT NULL AND cash_deposit.file_id != ''
|
WHEN cash_deposit.file_id IS NOT NULL AND cash_deposit.file_id != ''
|
||||||
THEN CONCAT(" . $this->db->escape($url) . ", cash_deposit.file_id)
|
THEN CONCAT(" . $this->db->escape($url) . ", MD5(cash_deposit.file_id))
|
||||||
ELSE NULL
|
ELSE NULL
|
||||||
END AS split_up_url",
|
END AS split_up_url",
|
||||||
false)
|
false)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user