user preference
This commit is contained in:
@@ -250,10 +250,12 @@ define('WRENCHBOARD_GETUSER_SETTINGS', 11059);
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_WALLETS', 11060);
|
||||
|
||||
define('WRENCHBOARD_ACCOUNT_TOPUP_RESULT', 11061);
|
||||
define('WRENCHBOARD_ACCOUNT_PREPARE_TOPUP', 11062);
|
||||
define('WRENCHBOARD_ACCOUNT_COMPLETE_TOPUP', 11063);
|
||||
define('WRENCHBOARD_ACCOUNT_REFFERHX', 11064 );
|
||||
define('WRENCHBOARD_ACCOUNT_TOPUP_RESULT', 11061);
|
||||
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_PRICE_COMBO', 11171);
|
||||
|
||||
@@ -92,7 +92,7 @@ $routes->post('/en/wrench/api/v1/stepresetpass', 'WrenchApi::apigate');
|
||||
$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/jobmanageragree', 'WrenchApi::apigate');
|
||||
$routes->post('/en/wrench/api/v1/jobmanagerlist', 'WrenchApi::apigate');
|
||||
|
||||
@@ -241,6 +241,7 @@ abstract class BaseController extends Controller
|
||||
'reqdel' => ['POST'],
|
||||
'recentactivities' => ['POST'],
|
||||
'playground' => ['POST'],
|
||||
'preferences' => ['POST'],
|
||||
];
|
||||
return $endpoints;
|
||||
}
|
||||
|
||||
@@ -45,6 +45,10 @@ class WrenchApi extends BaseController
|
||||
}
|
||||
private function prepareEndPointData($endpoint, $in, &$call_backend=true,&$local_out=[]){
|
||||
switch ($endpoint) {
|
||||
case 'preferences':
|
||||
$in["action"] = WRENCHBOARD_ACCOUNT_PREFERENCES;
|
||||
//preferences // define('WRENCHBOARD_ACCOUNT_PREFERENCES', 11065);
|
||||
break;
|
||||
case 'cachecontacts':
|
||||
log_message('critical', "************************ cachecontacts 0001 ".serialize($in));
|
||||
$this->processContacts( $in );
|
||||
|
||||
Reference in New Issue
Block a user