Set preferences

This commit is contained in:
CHIEFSOFT\ameye
2024-07-01 10:07:46 -04:00
parent 5b34da28b9
commit bcc69ff8a8
6 changed files with 13 additions and 2 deletions
+2 -2
View File
@@ -256,8 +256,8 @@ define('WRENCHBOARD_ACCOUNT_PREPARE_TOPUP', 11062);
define('WRENCHBOARD_ACCOUNT_COMPLETE_TOPUP', 11063);
define('WRENCHBOARD_ACCOUNT_REFFERHX', 11064);
define('WRENCHBOARD_ACCOUNT_PREFERENCES', 11065);
define('WRENCHBOARD_ACCOUNT_PREFERENCES', 11065);
define('WRENCHBOARD_ACCOUNT_UPDATE_PREFS', 11066);
define('WRENCHBOARD_ACCOUNT_MYPAGE', 11070);
define('WRENCHBOARD_ACCOUNT_PAGEINTRO', 11071);
+2
View File
@@ -94,6 +94,8 @@ $routes->post('/en/wrench/api/v1/starttopup', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/topupresult', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/preferences', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/setpreferences', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanageragree', 'WrenchApi::apigate');
$routes->post('/en/wrench/api/v1/jobmanagerlist', 'WrenchApi::apigate');
@@ -261,6 +261,7 @@ abstract class BaseController extends Controller
'recentactivities' => ['POST'],
'playground' => ['POST'],
'preferences' => ['POST'],
'setpreferences' => ['POST']
];
return $endpoints;
}
+3
View File
@@ -55,6 +55,9 @@ class WrenchApi extends BaseController
$in["action"] = WRENCHBOARD_ACCOUNT_PREFERENCES;
//preferences // define('WRENCHBOARD_ACCOUNT_PREFERENCES', 11065);
break;
case 'setpreferences':
$in["action"] = WRENCHBOARD_ACCOUNT_UPDATE_PREFS;
break;
case 'cachecontacts':
log_message('critical', "************************ cachecontacts 0001 ".serialize($in));
$this->processContacts( $in );