reward error
This commit is contained in:
@@ -55,7 +55,7 @@ class WrenchMedia extends BaseController
|
|||||||
$fileSection = $uriSegments[$segLen-2];
|
$fileSection = $uriSegments[$segLen-2];
|
||||||
$fileUID = $uriSegments[$segLen-1];
|
$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)) {
|
if (!array_key_exists($fileSection, $supportedSections)) {
|
||||||
log_message('critical', "Media gate Path GATE 003 - Fail Segment Types");
|
log_message('critical', "Media gate Path GATE 003 - Fail Segment Types");
|
||||||
$file = FCPATH.'/assets/images/error.png';
|
$file = FCPATH.'/assets/images/error.png';
|
||||||
@@ -116,6 +116,9 @@ class WrenchMedia extends BaseController
|
|||||||
$error_file ="error.png";
|
$error_file ="error.png";
|
||||||
|
|
||||||
switch($supportedSections[$fileSection]){
|
switch($supportedSections[$fileSection]){
|
||||||
|
case 10:
|
||||||
|
$error_file ="error_reward.png";
|
||||||
|
break;
|
||||||
case WRENCH_FILE_PROFILE:
|
case WRENCH_FILE_PROFILE:
|
||||||
///opt/wrenchboard/TEST/PROFILE/3119b744-42ad-4834-bb83-b737588754ca/PORTRAIT
|
///opt/wrenchboard/TEST/PROFILE/3119b744-42ad-4834-bb83-b737588754ca/PORTRAIT
|
||||||
$selectedFile = $this->savePath.'PROFILE/'.$out["member_uid"]."/PORTRAIT/". $out["saved_file_name"];
|
$selectedFile = $this->savePath.'PROFILE/'.$out["member_uid"]."/PORTRAIT/". $out["saved_file_name"];
|
||||||
@@ -155,7 +158,7 @@ class WrenchMedia extends BaseController
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
||||||
log_message('critical', "BEFORE CACHE*********");
|
log_message('critical', "BEFORE CACHE********* :: ".$selectedFile_CACHE_KEY);
|
||||||
if (isset($selectedFile) && $selectedFile!=''){
|
if (isset($selectedFile) && $selectedFile!=''){
|
||||||
// $selectedFile_CACHE_KEY = str_replace("/\/", "_", $selectedFile);
|
// $selectedFile_CACHE_KEY = str_replace("/\/", "_", $selectedFile);
|
||||||
$endpoint = "SECUREFILE-".$selectedFile_CACHE_KEY;
|
$endpoint = "SECUREFILE-".$selectedFile_CACHE_KEY;
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 142 KiB |
Reference in New Issue
Block a user