reward error

This commit is contained in:
CHIEFSOFT\ameye
2023-11-09 15:24:41 -05:00
parent 5fb74dc196
commit 5ff50cb457
2 changed files with 5 additions and 2 deletions
+5 -2
View File
@@ -55,7 +55,7 @@ class WrenchMedia extends BaseController
$fileSection = $uriSegments[$segLen-2];
$fileUID = $uriSegments[$segLen-1];
$supportedSections = ['profile'=>100,'myfile'=>200,'contracts'=>300,'family'=>400,'job'=>500];
$supportedSections = ['reward'=>10, 'profile'=>100,'myfile'=>200,'contracts'=>300,'family'=>400,'job'=>500];
if (!array_key_exists($fileSection, $supportedSections)) {
log_message('critical', "Media gate Path GATE 003 - Fail Segment Types");
$file = FCPATH.'/assets/images/error.png';
@@ -116,6 +116,9 @@ class WrenchMedia extends BaseController
$error_file ="error.png";
switch($supportedSections[$fileSection]){
case 10:
$error_file ="error_reward.png";
break;
case WRENCH_FILE_PROFILE:
///opt/wrenchboard/TEST/PROFILE/3119b744-42ad-4834-bb83-b737588754ca/PORTRAIT
$selectedFile = $this->savePath.'PROFILE/'.$out["member_uid"]."/PORTRAIT/". $out["saved_file_name"];
@@ -155,7 +158,7 @@ class WrenchMedia extends BaseController
else
{
log_message('critical', "BEFORE CACHE*********");
log_message('critical', "BEFORE CACHE********* :: ".$selectedFile_CACHE_KEY);
if (isset($selectedFile) && $selectedFile!=''){
// $selectedFile_CACHE_KEY = str_replace("/\/", "_", $selectedFile);
$endpoint = "SECUREFILE-".$selectedFile_CACHE_KEY;
Binary file not shown.

After

Width:  |  Height:  |  Size: 142 KiB