Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Cash Problem

Experienced Elementalist
Joined
Mar 30, 2015
Messages
222
Reaction score
44
anyone know how the api with cash works ? i have tryed many ways but idk what for a request he send -,- i already have write a execute query and via Postman i can see the result but i dont see the Cash ingame



my query
public function inquiryBalance(Request $request)
{
if(isset($request['userId'])){
$userID = $request['userId'];
$realBalance = 0;
$bonusBalance = 0;

$cashAccount = AccountInfo::where('Username', $userID)->first();

if($cashAccount){

$realBalance = $cashAccount->Real_Balance != null ?
$cashAccount->Real_Balance : 0;
$bonusBalance = $cashAccount->Bonus_Balance != null ?
$cashAccount->Bonus_Balance : 0;

return response()->json([
'result' => 'success',
'realCash' => intval($realBalance),
'bonusCash' => intval($bonusBalance)
],400);
}
}
return response()->json([
'service_code' => '',
'Result' => -97
],400);
}



Ingame he shows 0 cash



xBrainwash - Cash Problem - RaGEZONE Forums
 
Last edited:
Experienced Elementalist
Joined
Mar 30, 2015
Messages
222
Reaction score
44
i already edited the line to

NexonBillURL = "http://127.0.0.1:5000/nexon"
NexonCashPageURL = "http://127.0.0.1:5000/nexon"

because billing ask for prefix nexon

Route::group(['prefix'=>'nexon'],
function(){ Route::get('loginCheck/loginCheck', 'Auth\AuthController@LoginAccountCheck');
Route::post('inquiryBalance/json', 'Cash\CashShopController@inquiryBalance');
Route::post('nexonCash/charge/json', 'Cash\CashShopController@nexonCash');
Route::post('purchaseItem/json', 'Cash\CashShopController@purchaseItem');}
);



via postman i receive a result

xBrainwash - Cash Problem - RaGEZONE Forums
 
Upvote 0
Newbie Spellweaver
Joined
Jun 4, 2022
Messages
69
Reaction score
42
@Rooh , you need to see the server logs, put the logs of the .exe that is generating the error, from the little I could see it has an error in the database, it is not being able to load the cash items because it contains errors.
 
Upvote 0
Back
Top