game.php 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. <?php
  2. use App\Game\Config\GameBasicConfig;
  3. use Illuminate\Support\Facades\Route;
  4. //GlobalUID date
  5. Route::any('/agent_api/get-players', 'Game\AgentController@getAgentPlayers');
  6. //GlobalUID return links
  7. Route::any('/agent_api/get-links', 'Game\AgentController@getAgentLinks');
  8. //code
  9. Route::any('/agent_api/get-link-bycode', 'Game\AgentController@getAgentLinkCode');
  10. //al(json str)
  11. Route::any('/agent_api/new-link', 'Game\AgentController@newAgentLink');
  12. // $newacc=json_decode($request->ai,true);
  13. // $ua=json_decode($request->ua,true);
  14. // $gs=json_decode($request->gs,true);
  15. Route::any('/agent_api/user-pay', 'Game\AgentController@userPay');
  16. Route::any('/agent_api/user-payout', 'Game\AgentController@userPayout');
  17. Route::any('/agent_api/new-agent', 'Game\AgentController@newAgent');
  18. Route::any('/agent_api/modi-agent-channel', 'Game\AgentController@modifyBindChannel');
  19. Route::any('/agent_api/create-account', 'Game\AgentController@createAccount');
  20. Route::any('/agent_api/get-account', 'Game\AgentController@getAccount');
  21. Route::any('/agent_api/update-score', 'Game\AgentController@updateAccountScore');
  22. Route::any('/create_guest_accs', 'Game\LoginController@createGuestAccounts');
  23. Route::any('/checkgame', 'Game\GameController@CheckOuroGamePort');
  24. Route::any('/modulestat', 'Game\GameController@ModuleStat');
  25. Route::any('/hallapi/setstate', 'Game\HallApiController@SetIngameState');
  26. Route::any('/hallapi/init', 'Game\HallApiController@ClearLocker');
  27. Route::any('/ttt', 'Game\ActivityController@test');
  28. // LuckyStreak API Routes
  29. Route::post('/lucky/validate', 'Game\LuckyStreakController@validate');
  30. Route::post('/lucky/getBalance', 'Game\LuckyStreakController@getBalance');
  31. Route::post('/lucky/moveFunds', 'Game\LuckyStreakController@moveFunds');
  32. Route::post('/lucky/abortMoveFunds', 'Game\LuckyStreakController@abortMoveFunds');
  33. Route::any('/lucky/game_list', 'Game\LuckyStreakController@gameList');
  34. Route::any('/lucky/jackpot', 'Game\LuckyStreakController@jackpot');
  35. Route::any('/lucky/provider_games', 'Game\LuckyStreakController@providerGameList');
  36. Route::any('/hooks/sfp', 'Game\ServiceRedirectController@sfpHook');
  37. Route::any('/gotowhats', 'Game\ServiceRedirectController@whatsAppRedirect');
  38. //Route::any('/redpack/config', 'Game\ActivityController@RedConfig');
  39. //Route::any('/redpack/check', 'Game\ActivityController@RedCheck');
  40. Route::any('/click', 'Game\AgentSystemController@ClickScore');
  41. Route::any('/register', 'Game\LoginController@registerUser');
  42. Route::any('/registerNew', 'Game\LoginController@registerUserNew');
  43. Route::any('/login', 'Game\LoginController@Login');
  44. Route::any('/smslogin', 'Game\LoginController@LoginByCode');
  45. Route::any('/logout', 'Game\LoginController@Logout');
  46. Route::any('/service', 'Game\GameController@customer_service');
  47. Route::any('/recharge/gear', 'Game\RechargeController@gear');
  48. Route::any('/recharge/gearAct', 'Game\RechargeController@gearAct');
  49. Route::any('/recharge/pay_channel', 'Game\RechargeController@payChannel');
  50. Route::any('/gear/get_channel', 'Game\RechargeController@getPayChannel');
  51. Route::any('/recharge/vipConfig', 'Game\RechargeController@vipConfig');//vip配置信息
  52. Route::any('/turnplate/index', 'Game\ExtensionsController@turnplate');//绑定
  53. Route::any('/turnplate/kan', 'Game\ExtensionsController@kanOp');//zhuan
  54. Route::any('/turnplate/help', 'Game\ExtensionsController@kanShare');//zhuan
  55. Route::any('/agent/check', 'Game\AgentSystemController@getScore');
  56. Route::any('/agent/stat', 'Game\AgentSystemController@statLastDayMoney');
  57. Route::get('/aviatrix/health', 'Game\AviatrixController@healthCheck');
  58. Route::post('/aviatrix/playerInfo', 'Game\AviatrixController@getPlayerInfo');
  59. Route::post('/aviatrix/bet', 'Game\AviatrixController@placeBet');
  60. Route::post('/aviatrix/win', 'Game\AviatrixController@processWin');
  61. Route::post('/aviatrix/promo-win', 'Game\AviatrixController@promoWin');
  62. Route::post('/aviatrix/closeMatch', 'Game\AviatrixController@closeMatch');
  63. Route::any('/aviatrix/lunch', 'Game\AviatrixController@lunchGame');
  64. Route::post('/atmosfera/get_balance', 'Game\AtmosferaController@getBalance');
  65. Route::post('/atmosfera/get_account_details', 'Game\AtmosferaController@getAccountDetails');
  66. Route::post('/atmosfera/withdraw', 'Game\AtmosferaController@withdraw');
  67. Route::post('/atmosfera/deposit', 'Game\AtmosferaController@deposit');
  68. Route::post('/atmosfera/rollback', 'Game\AtmosferaController@rollback');
  69. Route::any('/atmosfera/game-list', 'Game\AtmosferaController@gameList');
  70. Route::any('/atmosfera/token', 'Game\AtmosferaController@token');
  71. Route::any('/atmosfera/check_user', 'Game\AtmosferaController@checkUser');
  72. Route::get('/bb/ping', 'Game\BetbyCenterController@ping'); //Ping
  73. Route::post('/bb/bet/make', 'Game\BetbyCenterController@betMake'); //Bet Make
  74. Route::post('/bb/bet/commit', 'Game\BetbyCenterController@betCommit'); //Bet Commit (optional)
  75. Route::post('/bb/bet/settlement', 'Game\BetbyCenterController@betSettlement'); //Bet Settlement
  76. Route::post('/bb/bet/refund', 'Game\BetbyCenterController@betRefund'); //Bet Refund
  77. Route::post('/bb/bet/win', 'Game\BetbyCenterController@betWin'); //Bet Win
  78. Route::post('/bb/bet/lost', 'Game\BetbyCenterController@betLost'); //Bet Lost
  79. Route::post('/bb/bet/discard', 'Game\BetbyCenterController@betDiscard'); //Bet Discard
  80. Route::post('/bb/bet/rollback', 'Game\BetbyCenterController@betRollback'); //Bet Rollback
  81. Route::get('/bbsub/ping', 'Game\BetbyController@ping'); //Ping
  82. Route::post('/bbsub/make', 'Game\BetbyController@betMake'); //Bet Make
  83. Route::post('/bbsub/commit', 'Game\BetbyController@betCommit'); //Bet Commit (optional)
  84. Route::post('/bbsub/settlement', 'Game\BetbyController@betSettlement'); //Bet Settlement
  85. Route::post('/bbsub/refund', 'Game\BetbyController@betRefund'); //Bet Refund
  86. Route::post('/bbsub/win', 'Game\BetbyController@betWin'); //Bet Win
  87. Route::post('/bbsub/lost', 'Game\BetbyController@betLost'); //Bet Lost
  88. Route::post('/bbsub/discard', 'Game\BetbyController@betDiscard'); //Bet Discard
  89. Route::post('/bbsub/rollback', 'Game\BetbyController@betRollback'); //Bet Rollback
  90. Route::get('/btest/ping', 'Game\BetbyTestController@ping'); //Ping
  91. Route::any('/btest/bet/make', 'Game\BetbyTestController@betMake'); //Bet Make
  92. Route::any('/btest/bet/commit', 'Game\BetbyTestController@betCommit'); //Bet Commit (optional)
  93. Route::any('/btest/bet/settlement', 'Game\BetbyTestController@betSettlement'); //Bet Settlement
  94. Route::any('/btest/bet/refund', 'Game\BetbyTestController@betRefund'); //Bet Refund
  95. Route::any('/btest/bet/win', 'Game\BetbyTestController@betWin'); //Bet Win
  96. Route::any('/btest/bet/lost', 'Game\BetbyTestController@betLost'); //Bet Lost
  97. Route::any('/btest/bet/discard', 'Game\BetbyTestController@betDiscard'); //Bet Discard
  98. Route::any('/btest/bet/rollback', 'Game\BetbyTestController@betRollback'); //Bet Rollback
  99. //正式版
  100. Route::any('/pgpro/game_list', 'Game\PgSoftController@gameList');
  101. Route::any('/pgpro/VerifySession', 'Game\PgSoftController@VerifySession');
  102. Route::any('/pgpro/Cash/Get', 'Game\PgSoftController@balance');
  103. Route::any('/pgpro/Cash/TransferInOut', 'Game\PgSoftController@cashTransferInOut');
  104. Route::any('/pgpro/Cash/Adjustment', 'Game\PgSoftController@cashAdjustment');
  105. Route::any('/pgpro/Cash/UpdateBetDetail', 'Game\PgSoftController@cashUpdateBetDetail');
  106. //测试版
  107. Route::any('/pg/game_list', 'Game\PgSoftTestController@gameList');
  108. Route::any('/pg/VerifySession', 'Game\PgSoftTestController@VerifySession');
  109. Route::any('/pg/Cash/Get', 'Game\PgSoftTestController@balance');
  110. Route::any('/pg/Cash/TransferInOut', 'Game\PgSoftTestController@cashTransferInOut');
  111. Route::any('/pg/Cash/Adjustment', 'Game\PgSoftTestController@cashAdjustment');
  112. Route::any('/pg/Cash/UpdateBetDetail', 'Game\PgSoftTestController@cashUpdateBetDetail');
  113. //pragmaticplay正式接口
  114. Route::any('/pp/game_list', 'Game\PPlayController@gameList');
  115. Route::any('/pp/game_login', 'Game\PPlayController@gameLogin');
  116. Route::any('/pp/lobby_list', 'Game\PPlayController@gameLobbyList');
  117. Route::any('/pp/back_lobby', 'Game\PPlayController@backLobby')->name('pp.lobby');
  118. Route::any('/pp/auth', 'Game\PPlayController@authenticate');
  119. Route::any('/pp/balance', 'Game\PPlayController@balance');
  120. Route::any('/pp/bet', 'Game\PPlayController@bet');
  121. Route::any('/pp/result', 'Game\PPlayController@result');
  122. Route::any('/pp/bonus_win', 'Game\PPlayController@bonusWin');
  123. Route::any('/pp/jackpot_win', 'Game\PPlayController@jackpotWin');
  124. Route::any('/pp/promo_win', 'Game\PPlayController@promoWin');
  125. Route::any('/pp/refund', 'Game\PPlayController@refund');
  126. Route::any('/pragmatic/game_list', 'Game\PPlayTestController@gameList');
  127. Route::any('/pragmatic/game_login', 'Game\PPlayTestController@gameLogin');
  128. Route::any('/pragmatic/lobby_list', 'Game\PPlayTestController@gameLobbyList');
  129. Route::any('/pragmatic/back_lobby', 'Game\PPlayTestController@backLobby')->name('pp.lobby');;
  130. Route::any('/pragmatic/auth', 'Game\PPlayTestController@authenticate');
  131. Route::any('/pragmatic/balance', 'Game\PPlayTestController@balance');
  132. Route::any('/pragmatic/bet', 'Game\PPlayTestController@bet');
  133. Route::any('/pragmatic/result', 'Game\PPlayTestController@result');
  134. Route::any('/pragmatic/bonus_win', 'Game\PPlayTestController@bonusWin');
  135. Route::any('/pragmatic/jackpot_win', 'Game\PPlayTestController@jackpotWin');
  136. Route::any('/pragmatic/promo_win', 'Game\PPlayTestController@promoWin');
  137. Route::any('/pragmatic/refund', 'Game\PPlayTestController@refund');
  138. // Evoplay API 回调接口
  139. Route::prefix('evoplay')->group(function () {
  140. Route::post('/game_list', 'Game\EvoplayController@gameList');
  141. Route::post('/verify', 'Game\EvoplayController@verifyPlayer');
  142. Route::post('/balance', 'Game\EvoplayController@getBalance');
  143. Route::post('/bet', 'Game\EvoplayController@bet');
  144. Route::post('/win', 'Game\EvoplayController@win');
  145. Route::post('/rollback', 'Game\EvoplayController@rollback');
  146. });
  147. Route::group([
  148. 'middleware' => ['checkGameLogin']
  149. ], function (\Illuminate\Routing\Router $route) {
  150. Route::any('/recharge/gear', 'Game\RechargeController@gear');
  151. $route->any('/apk/loadnew', 'Game\WebRouteController@checkApkInstall');
  152. $route->any('/test_change', 'Game\WebRouteController@testScoreChange');
  153. $route->any('/user/message', 'Game\ServiceRedirectController@userMessageAdd');
  154. // $route->any('/send_code/send_verify', 'Game\SendCodeController@send_verify');
  155. $route->any('/recharge/firstPayConfig', 'Game\RechargeController@firstPayConfig');
  156. $route->any('/apk', 'Game\DownloadController@DownloadTWA');
  157. $route->any('/send_code', 'Game\SendCodeController@send');
  158. $route->any('/forgetPass', 'Game\LoginController@forgetPassword');
  159. $route->any('/routes', 'Game\WebRouteController@Routes');
  160. $route->any('/pageModules/{id}', 'Game\WebPageModuleController@PageModules');
  161. $route->any('/gameList', 'Game\WebPageModuleController@GameList');
  162. $route->any('/actList', 'Game\ActivityController@List');
  163. });
  164. Route::group([
  165. 'middleware' => ['checkGameLogin', 'mustGameLogin']
  166. ], function (\Illuminate\Routing\Router $route) {
  167. $route->any('/igt/lunch', 'Game\IgtSimController@gameLunch');
  168. $route->any('/getRegisterGold', 'Game\WebRouteController@getRegisterGold');
  169. $route->any('/evoplay/lunch', 'Game\EvoplayController@gameLunch');
  170. $route->any('/lucky/lunch', 'Game\LuckyStreakController@gameLunch');
  171. $route->any('/pay/get_second', 'Game\PayRechargeController@getSecondGive'); // 返回首充金额
  172. $route->any('/pay/first_pay_multi', 'Game\PayRechargeController@firstPayMulti'); // 首充接口
  173. $route->any('/pay/first_pay', 'Game\PayRechargeController@firstPay'); // 返回首充金额
  174. $route->any('/pay/first_pay_gift', 'Game\PayRechargeController@firstPayGift'); // 首充礼包(带倒计时)
  175. $route->any('/pay/claim_first_pay_gift', 'Game\PayRechargeController@claimFirstPayGiftReward'); // 领取首充礼包奖励
  176. $route->any('/pay/bankruptcy_gift', 'Game\PayRechargeController@bankruptcyGift'); // 破产礼包
  177. //正式
  178. $route->any('/pgpro/lunch', 'Game\PgSoftController@gameLunch');
  179. $route->any('/pgsoft/lunch', 'Game\PgSimController@gameLunch');
  180. $route->any('/jiligame/lunch', 'Game\JiliSimController@gameLunch');
  181. //测试
  182. $route->any('/pg/lunch', 'Game\PgSoftTestController@gameLunch');
  183. $route->any('/pragmatic/lunch', 'Game\PPlayController@gameLunch');
  184. $route->any('/pp/lunch', 'Game\PPSimController@gameLunch');
  185. $route->any('/protect/check', 'Game\ActivityController@GetProtectNum');
  186. $route->any('/protect/get', 'Game\ActivityController@AddProtectNum');
  187. $route->any('/bindsms', 'Game\LoginController@BindPhone');
  188. $route->any('/favo/add', 'Game\WebPageModuleController@addFavorite');
  189. $route->any('/favo/remove', 'Game\WebPageModuleController@removeFavorite');
  190. $route->any('/favo/get', 'Game\WebPageModuleController@getFavorite');
  191. $route->any('/checkin/check', 'Game\ActivityController@GetCheckInInfoConfig');
  192. $route->any('/checkin/get', 'Game\ActivityController@GetCheckInInfo');
  193. $route->any('/agent/get', 'Game\AgentSystemController@receiveScore');
  194. $route->any('/agent/history', 'Game\AgentSystemController@history');
  195. // $route->any('/redpack/receive', 'Game\ActivityController@RedReceive');
  196. $route->any('/turnplate/bonus', 'Game\ExtensionsController@kanBonus');//bonus
  197. // VIP提现诱导任务
  198. $route->any('/vip-withdraw/tasks', 'Game\ActivityController@getVipWithdrawTasks');
  199. $route->any('/vip-withdraw/claim', 'Game\ActivityController@claimVipWithdrawReward');
  200. $route->any('/mail/check', 'Game\MailController@newMsg');
  201. $route->any('/mail/list', 'Game\MailController@mailList');
  202. $route->any('/mail/del', 'Game\MailController@delete');
  203. $route->any('/mail/read', 'Game\MailController@read');
  204. $route->any('/mail/take', 'Game\MailController@take');
  205. $route->any('/mail/test', 'Game\MailController@tst');
  206. $route->any('/info', 'Game\LoginController@GetUserInfo');
  207. $route->any('/changePayPass', 'Game\LoginController@modiInsurePassword');
  208. $route->any('/forgetPayPass', 'Game\LoginController@forgetInsurePassword');
  209. $route->any('/changePass', 'Game\LoginController@modiPassword');
  210. $route->any('/changePhone', 'Game\LoginController@modiPhone');
  211. $route->any('/changeEmail', 'Game\LoginController@modiEmail');
  212. $route->any('/changeInfo', 'Game\LoginController@modiUserInfo');
  213. $route->any('/ouro777', 'Game\GameController@Ouro777GamePage');
  214. $route->any('/gameinfo', 'Game\GameController@GetGameInfo');
  215. $route->any('/only', 'Game\OnlyGameController@gameLunch');
  216. $route->any('/aviatrix', 'Game\AviatrixController@gameLunch');
  217. $route->any('/atmosfera', 'Game\AtmosferaController@gameLunch');
  218. // 支付入口 -- 总入口
  219. $route->any('/payment_entry/pay', 'Game\PaymentEntryController@pay');
  220. $route->any('/payment_entry/payqr', 'Game\PaymentEntryController@payQR');
  221. $route->any('/payment_entry/iospay', 'Game\PaymentEntryController@iospay');
  222. $route->any('/payment_entry/googlepay', 'Game\PaymentEntryController@googlepay');
  223. $route->any('/recharge/userTotalRecharge', 'Game\RechargeController@userTotalRecharge');//用户总充值
  224. $route->any('/recharge/guidePayment', 'Game\RechargeController@guidePayment');//引导付费
  225. $route->any('/pay/orderList', 'Game\PayRechargeController@orderList'); // 充值记录
  226. $route->any('/withDraw/savecpf', 'Game\WithDrawInfoController@saveCpf');//提现信息完善
  227. $route->any('/withDraw/record', 'Game\WithDrawInfoController@WithDrawRecord');//提现信息完善
  228. $route->any('/withDraw/mexWithDrawInfo', 'Game\WithDrawInfoController@MexWithDrawInfo');//提现信息完善
  229. $route->any('/withDraw/ruWithDrawInfo', 'Game\WithDrawInfoController@RuWithDrawInfo');//提现信息完善
  230. $route->any('/withDraw/withDrawInfo', 'Game\WithDrawInfoController@withDrawInfo');//提现信息完善
  231. $route->any('/withDraw/freeWithDrawInfo', 'Game\WithDrawInfoController@FreeWithDrawInfo');//提现信息完善
  232. $route->any('/withDraw/getWithDrawInfo', 'Game\WithDrawInfoController@getWithDrawInfo');//获取提现信息
  233. $route->any('/withDraw/baseInfo', 'Game\WithDrawInfoController@GetWithDrawBaseInfo');//获取提现信息
  234. $route->any('/withDraw/payout', 'Game\WithDrawInfoController@GoWithDraw');//获取提现信息
  235. $route->any('/kyc/eu', 'Game\WithDrawInfoController@kycSimpleEU');
  236. });
  237. Route::group([
  238. 'middleware' => 'apiSign'
  239. ], function (\Illuminate\Routing\Router $route) {
  240. $route->get('/{checkkey}/{ip_check_key}', 'Api\ApiController@LoginIP_NMask');
  241. });
  242. GameBasicConfig::$DOLLAR=env('CONFIG_24680_DOLLAR',GameBasicConfig::$DOLLAR);
  243. GameBasicConfig::$ApiServer=env('APP_URL',GameBasicConfig::$ApiServer);
  244. GameBasicConfig::$HallServer=env('CONFIG_24680_HALL',GameBasicConfig::$HallServer);