api.php 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. <?php
  2. use Illuminate\Support\Facades\Route;
  3. App::setLocale(env('DEFAULT_LOCALE','en'));
  4. Route::any('/apk/ios', 'Api\AutoApkController@iosJump');
  5. Route::any('/h5', 'Api\AutoApkController@h5jump');
  6. Route::any('/apk/health', 'Api\AutoApkController@health');
  7. Route::any('/apk/inside', 'Api\AutoApkController@inside');
  8. Route::any('/apk/make', 'Api\AutoApkController@createApk');
  9. Route::any('/apk/getsign', 'Api\AutoApkController@findUrlSign');
  10. Route::any('/app/{package}', 'Api\ApkController@download');
  11. Route::any('/appconfig', 'Api\ApkController@appconfig');
  12. Route::any('/apk/log', 'Api\ApkController@log');
  13. Route::any('/apk/checkpay', 'Api\ApkController@check_user_pay');
  14. Route::any('/apk/act', 'Api\ApkController@check_action');
  15. Route::any('/apk/save', 'Api\ApkController@save_data');
  16. Route::any('/apk/load', 'Api\ApkController@load_data');
  17. Route::any('/apk/savenew', 'Api\ApkController@save_data_new');
  18. Route::any('/apk/loadnew', 'Api\ApkController@load_data_new');
  19. Route::any('/apk/test', 'Api\ApkController@test');
  20. Route::any('/apk/checkpay2', 'Api\ApkController@check_user_pay2');
  21. Route::post('/user/message', 'Api\ApiController@userMessageAdd');
  22. Route::any('/log', 'Api\ApiController@log');
  23. Route::any('/callback_start', 'Api\AccCallbackController@send');
  24. Route::any('/error_report', 'Api\ApiController@errorReport');
  25. Route::any('/adjust_test', 'Api\ApiController@adjust');
  26. Route::any('/repay_orders', 'Api\ApiController@repayOrders');
  27. Route::any('/telehook', 'Api\TelegramController@hook');
  28. Route::any('/teletest', 'Api\TelegramController@test');
  29. Route::any('/rate_us', 'Api\ApiController@rateUs');
  30. Route::group([
  31. 'middleware' => 'newApiSign'
  32. ], function ($route) {
  33. // 支付入口 -- 总入口
  34. $route->any('/payment_entry/pay', 'Api\PaymentEntryController@pay');
  35. $route->any('/payment_entry/iospay', 'Api\PaymentEntryController@iospay');
  36. $route->any('/payment_entry/googlepay', 'Api\PaymentEntryController@googlepay');
  37. });
  38. // 根据支付档位获取渠道
  39. //Route::get('/test_tele', 'Api\TestController@tele');
  40. //Route::get('/test', 'Api\TestController@index');
  41. Route::any('/game_api/update_user_info', 'Api\GameApiController@updateUserInfo');
  42. Route::any('/game_api/user_source', 'Api\GameApiController@UserSource');
  43. //在线数据
  44. Route::any('/game_api/billboard', 'Api\GameApiController@billBoard');
  45. Route::any('/game_api/billboard2', 'Api\GameApiController@billBoard2');
  46. //在线数据
  47. Route::any('/game_api/online_list', 'Api\GameApiController@onlineList');
  48. // 文件上传
  49. Route::any('/upload/upload_file', 'Api\UploadController@uploadFile');
  50. // AB面,单独开关
  51. //Route::any('/other/switch', 'Api\OtherController@switch');
  52. //Route::any('/appflyer/event', 'Api\AppflyerEventController@index');
  53. //Route::any('/appflyer/test', 'Api\AppflyerEventController@test');
  54. // 加载注册页面
  55. //Route::get('/rev/register_view', 'Api\RegisterController@registerView');
  56. // 下载页面
  57. //Route::get('/rev/download', 'Api\RegisterController@download');
  58. // 注册提交页面
  59. //Route::any('/rev/index', 'Api\RegisterController@index');
  60. //Route::any('/rev/customer_service', 'Api\RegisterController@customerService');
  61. Route::any('/send_code/send_verify', 'Api\SendCodeController@send_verify');
  62. //Route::any('/send_code/send', 'Api\SendCodeController@send');
  63. Route::any('/send_code/get_code', 'Api\SendCodeController@getCode');
  64. Route::any('/send_code/kmi_send', 'Api\SendCodeController@kmiSend');
  65. // 渠道管理-- 根据包开放不同的游戏和充值
  66. Route::any('/channel/channel_open_recharge', 'Api\ChannelController@ChannelOpenRecharge');
  67. Route::any('/channel/channel_game_open', 'Api\ChannelController@ChannelGameOpen');
  68. Route::any('/channel/channel_second_stage', 'Api\ChannelController@ChannelSecondStage');
  69. Route::any('/channel/shareUrl', 'Api\ChannelController@shareUrl'); // 分渠道展示不同分享链接
  70. // 大厅活动公告
  71. Route::any('/notice/hall_announcement', 'Api\NoticeController@hallAnnouncement');
  72. Route::any('/notice/hall_announcement_info/{id}', 'Api\NoticeController@hallAnnouncementInfo');
  73. Route::any('/notice/remind', 'Api\NoticeController@remind');
  74. // 谷歌支付
  75. Route::any('/google_pay/confirm', 'Api\GooglePayController@confirm');
  76. Route::any('/apple_store_pay/confirm', 'Api\AppleStorePayController@confirm');
  77. // 裂变 -- 分享
  78. //Route::any('/extension/getScore', 'Api\ExtensionsController@getScore');
  79. //Route::any('/extension/receiveScore', 'Api\ExtensionsController@receiveScore');
  80. //Route::any('/extension/list', 'Api\ExtensionsController@list');
  81. //Route::any('/extension/recharge_rate', 'Api\ExtensionsController@rechargeRate');
  82. // 裂变 -- 分享新接口
  83. Route::any('/new_extension/getScore', 'Api\ExtensionsController@getScore');
  84. Route::any('/new_extension/receiveScore', 'Api\ExtensionsController@receiveScore');
  85. Route::any('/new_extension/list', 'Api\ExtensionsController@list');
  86. // 获取版本信息
  87. Route::get('/get_version/index', 'Api\GetVersionController@index');
  88. Route::get('/game_version/ruby', 'Api\GetVersionController@indexRuby');
  89. Route::get('/del_version', 'Api\GetVersionController@delVersion');
  90. // 支付绑定信息修改
  91. Route::any('/api/update_accounts_pay_info', 'Api\ApiController@updateAccountsPayInfo');
  92. // 支付绑定信息获取
  93. Route::any('/api/get_accounts_pay_info', 'Api\ApiController@getAccountsPayInfo');
  94. //提现手续费返回
  95. Route::any('/api/withDrawTax', 'Api\ApiController@withDrawTax');
  96. //新手引导
  97. //Route::any('/api/new_guide', 'Api\ApiController@newGuide');
  98. // 版本
  99. //Route::any('/query_version_new', 'Api\QueryVersionNewController@index');
  100. Route::get('/gear/get_channels', 'Api\RechargeController@getPayChannel');
  101. Route::any('/config/index', 'Api\ConfigController@index');
  102. // 客服功能管理
  103. Route::any('/api/customer_service', 'Api\ApiController@customer_service');
  104. Route::any('/pgsoft/leave', 'Game\PgSimController@leaveOrg');
  105. Route::any('/jiligames/leave', 'Game\JiliSimController@leaveOrg');
  106. Route::any('/jiligames/lunchorg2', 'Game\JiliSimController@gameLunchOrg');
  107. Route::any('/igt/leave', 'Game\IgtSimController@leaveOrg');
  108. Route::any('/igt/lunchorg', 'Game\IgtSimController@gameLunchOrg');
  109. Route::any('/igt/lunch', 'Game\IgtSimController@gameLunch');
  110. Route::any('/pp/leave', 'Game\PPSimController@leaveOrg');
  111. Route::any('/pp/lunchorg', 'Game\PPSimController@gameLunchOrg');
  112. Route::any('/pp/lunch', 'Game\PPSimController@gameLunch');
  113. Route::group([
  114. 'middleware' => 'apiSign'
  115. ], function (\Illuminate\Routing\Router $route) {
  116. $route->any('/web_login', 'Api\ApkController@WebLogin');
  117. $route->any('/launch9x', 'Game\JiliSimController@launch9x');
  118. Route::any('/jiligames/lunchorg', 'Game\JiliSimController@gameLunchOrg');
  119. $route->any('/bind_country', 'Api\ApiController@bindCountry'); // 返回首充金额
  120. $route->any('/check_country', 'Api\ApiController@checkCountry'); // 返回首充金额
  121. $route->any('/bind_locale', 'Api\ApiController@bindLocale'); // 返回首充金额
  122. $route->any('/check_locale', 'Api\ApiController@checkLocale'); // 返回首充金额
  123. $route->any('/pay/first_pay_multi', 'Api\PayRechargeController@firstPayMulti'); // 返回首充金额
  124. $route->any('/pay/get_second', 'Api\PayRechargeController@getSecondGive'); // 返回首充金额
  125. $route->any('/pay/time_bonus', 'Api\PayRechargeController@timeBonus'); // 返回首充金额
  126. $route->any('/pgsoft/lunchorg', 'Game\PgSimController@gameLunchOrg');
  127. $route->any('/jackpot', 'Api\ApiController@jackpot');
  128. $route->any('/changeapk/check', 'Api\ApkController@checkDownloadNotice');
  129. $route->any('/changeapk/click', 'Api\ApkController@clickDownloadNotice');
  130. $route->any('/send_code/send2', 'Api\SendCodeController@send2');
  131. $route->post('/commission', 'Api\ApiController@setCommission');//点位设置
  132. $route->get('/user/message', 'Api\ApiController@userMessageList');
  133. $route->get('/user/wait_read', 'Api\ApiController@wait_read');
  134. $route->get('/login_ip_map', 'Api\ApiController@LoginIPMap');
  135. $route->get('/login_ip', 'Api\ApiController@LoginIP');
  136. $route->get('/sign_in/{ip_check_key}', 'Api\ApiController@LoginIP_Hand');
  137. $route->get('/findready/{ip_check_key}', 'Api\ApiController@LoginIP_Mask');
  138. // ID白名单
  139. $route->any('/channel/channel_shield_id_white', 'Api\ApiController@channel_shield_id_white');
  140. // 公告
  141. $route->any('/notice/system_maintenance', 'Api\NoticeController@systemMaintenance');
  142. /*支付相关接口*/
  143. // 充值记录
  144. $route->get('/pay/orderList', 'Api\PayRechargeController@orderList');
  145. // 支付相关
  146. // 支付入口 -- 总入口
  147. $route->any('/payment/pay', 'Api\PaymentController@pay');
  148. /*返回所有可用支付渠道类型*/
  149. $route->get('/payapi/pay_type', 'Api\PayController@pay_type');
  150. /*返回充值档位*/
  151. // 返回充值金额
  152. $route->get('/recharge/gear', 'Api\RechargeController@gear');
  153. $route->get('/recharge/gearAct', 'Api\RechargeController@gearAct');
  154. $route->get('/recharge/pay_channel', 'Api\RechargeController@payChannel');
  155. $route->get('/recharge/firstPayConfig', 'Api\RechargeController@firstPayConfig');
  156. $route->get('/channel/list', 'Api\ChannelController@index');
  157. });
  158. Route::get('/gear/get_channel', 'Api\RechargeController@getPayChannel');
  159. Route::get('/recharge/vipConfig', 'Api\RechargeController@vipConfig');//vip配置信息
  160. Route::get('/recharge/userTotalRecharge', 'Api\RechargeController@userTotalRecharge');//用户总充值
  161. Route::get('/recharge/guidePayment', 'Api\RechargeController@guidePayment');//引导付费
  162. //Route::get('/pay/orderList', 'Api\PayRechargeController@orderList')->middleware('throttle:60,1'); // 充值记录
  163. Route::get('/pay/first_pay', 'Api\PayRechargeController@firstPay'); // 返回首充金额
  164. Route::post('/withDraw/withDrawInfo', 'Api\WithDrawInfoController@withDrawInfo');//提现信息完善
  165. Route::post('/withDraw/withDrawInfoSA', 'Api\WithDrawInfoController@withDrawInfoSA');//提现信息完善
  166. Route::get('/withDraw/getWithDrawInfo', 'Api\WithDrawInfoController@getWithDrawInfo');//获取提现信息
  167. //
  168. // 支付-提现 相关
  169. //
  170. //Route::any('/Pagsmilepay/notify', 'Api\PagsmilePayController@notify');
  171. //Route::any('/Pagsmilepay/sync_notify', 'Api\PagsmilePayController@sync_notify');
  172. //Route::any('/Pagsmilepay/cash_notify', 'Api\PagsmilePayController@cash_notify');
  173. //
  174. //Route::any('/Pagsmilepay/notify_new', 'Api\PagsmileNewPayController@notify');
  175. //
  176. //// YY Pay
  177. //Route::any('/foxpay/notify', 'Api\FoxPayController@notify');
  178. //Route::any('/foxpay/sync_notify', 'Api\FoxPayController@sync_notify');
  179. //Route::any('/foxpay/cash_notify', 'Api\FoxPayController@cash_notify');
  180. //
  181. //
  182. //Route::any('/uupay/notify', 'Api\UuPayController@notify');
  183. //Route::any('/uupay/sync_notify', 'Api\UuPayController@sync_notify');
  184. //Route::any('/uupay/cash_notify', 'Api\UuPayController@cash_notify');
  185. //
  186. //
  187. Route::any('/goopago/notify', 'Api\GoopagoController@notify');
  188. Route::any('/goopago/sync_notify', 'Api\GoopagoController@sync_notify');
  189. Route::any('/goopago/cash_notify', 'Api\GoopagoController@cash_notify');
  190. //
  191. //
  192. //Route::any('/oteapaynew/notify', 'Api\OTeaPayNewController@notify');
  193. //Route::any('/oteapaynew/sync_notify', 'Api\OTeaPayNewController@sync_notify');
  194. //Route::any('/oteapaynew/cash_notify', 'Api\OTeaPayNewController@cash_notify');
  195. //
  196. //Route::any('/bpay/notify', 'Api\OTeaPayController@notify');
  197. //Route::any('/bpay/sync_notify', 'Api\OTeaPayController@sync_notify');
  198. //Route::any('/bpay/cash_notify', 'Api\OTeaPayController@cash_notify');
  199. Route::any('/lqpay/notify', 'Api\LQPayController@notify');
  200. Route::any('/lqpay/cash_notify', 'Api\LQPayController@cash_notify');
  201. Route::any('/ppay/notify', 'Api\PPayController@notify');
  202. Route::any('/ppay/cash_notify', 'Api\PPayController@cash_notify');
  203. Route::any('/cashpay/notify', 'Api\FastPayController@notify');
  204. Route::any('/cashpay/sync_notify', 'Api\FastPayController@sync_notify');
  205. Route::any('/cashpay/cash_notify', 'Api\FastPayController@cash_notify');
  206. Route::any('/cashpay/agent_cash_notify', 'Api\FastPayController@cash_notify');
  207. Route::any('/n_cashpay/notify', 'Api\CashPayController@notify');
  208. Route::any('/n_cashpay/sync_notify', 'Api\CashPayController@sync_notify');
  209. Route::any('/n_cashpay/cash_notify', 'Api\CashPayController@cash_notify');
  210. Route::any('/n_cashpay/agent_cash_notify', 'Api\CashPayController@cash_notify');
  211. Route::any('/fastpay/notify', 'Api\FastPayController@notify');
  212. Route::any('/fastpay/sync_notify', 'Api\FastPayController@sync_notify');
  213. Route::any('/fastpay/cash_notify', 'Api\FastPayController@cash_notify');
  214. Route::any('/fastpay/agent_cash_notify', 'Api\FastPayController@cash_notify');
  215. Route::any('/nicepay/notify', 'Api\NicePayController@notify');
  216. Route::any('/nicepay/sync_notify', 'Api\NicePayController@sync_notify');
  217. Route::any('/nicepay/cash_notify', 'Api\NicePayController@cash_notify');
  218. Route::any('/nicepay/agent_cash_notify', 'Api\NicePayController@cash_notify');
  219. Route::any('/aegpay/notify', 'Api\AegPayController@notify');
  220. Route::any('/aegpay/payout_notify', 'Api\AegPayController@cash_notify');
  221. Route::any('/toppay/notify', 'Api\TopPayController@notify');
  222. Route::any('/toppay/payout_notify', 'Api\TopPayController@cash_notify');
  223. Route::any('/clickpay/notify', 'Api\ClickPayController@notify');
  224. Route::any('/clickpay/payout_notify', 'Api\ClickPayController@cash_notify');
  225. Route::any('/sitobank/notify', 'Api\SitoBankController@notify');
  226. Route::any('/sitobank/payout_notify', 'Api\SitoBankController@cash_notify');
  227. // WiwiPay支付渠道
  228. Route::any('/wiwipay/notify', 'Api\WiwiPayController@notify');
  229. Route::any('/wiwipay/payout_notify', 'Api\WiwiPayController@cash_notify');
  230. Route::any('/wiwipay/return', 'Api\WiwiPayController@sync_notify');
  231. // WDPay支付渠道
  232. Route::any('/wdpay/notify', 'Api\WDPayController@notify');
  233. Route::any('/wdpay/payout_notify', 'Api\WDPayController@cash_notify');
  234. Route::any('/wdpay/return', 'Api\WDPayController@sync_notify');
  235. Route::any('/russia/notify', 'Api\RussiaPayController@notify');
  236. Route::any('/russia/cash_notify', 'Api\RussiaPayController@cash_notify');
  237. Route::any('/stanpay/notify', 'Api\StanPayController@notify');
  238. Route::any('/stanpay/cash_notify', 'Api\StanPayController@cash_notify');
  239. Route::any('/smartfast/notify', 'Api\SmartFastPayController@notify');
  240. Route::any('/smartfast/payout_notify', 'Api\SmartFastPayController@cash_notify');
  241. //Route::any('/smartfastperu/notify', 'Api\SmartFastPeruController@notify');
  242. //Route::any('/smartfastperu/payout_notify', 'Api\SmartFastPeruController@cash_notify');
  243. Route::any('/smartfast_uni/notify/{country}', 'Api\SmartFastPeruController@notify');
  244. Route::any('/smartfast_uni/payout_notify/{country}', 'Api\SmartFastPeruController@cash_notify');
  245. Route::any('/smart/notify', 'Api\SmartPayController@notify');
  246. Route::any('/smart/payout_notify', 'Api\SmartPayController@cash_notify');
  247. Route::any('/sfp/proxy', 'Api\SmartFastColController@proxy');
  248. Route::any('/smartfastcol/notify', 'Api\SmartFastColController@notify');
  249. Route::any('/smartfastcol/payout_notify', 'Api\SmartFastColController@cash_notify');
  250. Route::any('/crypto/notify', 'Api\CryptoController@notify');
  251. Route::any('/crypto/payout_notify', 'Api\CryptoController@cash_notify');
  252. Route::any('/hhpay/notify', 'Api\HHPayColController@notify');
  253. Route::any('/hhpay/payout_notify', 'Api\HHPayColController@cash_notify');
  254. Route::any('/wwpay/notify', 'Api\WWPayColController@notify');
  255. Route::any('/wwpay/payout_notify', 'Api\WWPayColController@cash_notify');
  256. Route::any('/dopay/notify', 'Api\DoPayController@notify');
  257. Route::any('/dopay/payout_notify', 'Api\DoPayController@cash_notify');
  258. Route::any('/starpago/notify', 'Api\StarpagoController@notify');
  259. Route::any('/starpago/payout_notify', 'Api\StarpagoController@cash_notify');
  260. Route::any('/starpagobd/notify', 'Api\StarpagoBDController@notify');
  261. Route::any('/starpagobd/payout_notify', 'Api\StarpagoBDController@cash_notify');
  262. Route::any('/pkpay/notify', 'Api\PKpayController@notify');
  263. Route::any('/pkpay/payout_notify', 'Api\PKpayController@cash_notify');
  264. Route::any('/all2pay/notify', 'Api\ALL2payController@notify');
  265. Route::any('/all2pay/sync_notify', 'Api\ALL2payController@sync_notify');
  266. Route::any('/all2pay/cash_notify', 'Api\ALL2payController@cash_notify');
  267. Route::any('/karopay/notify', 'Api\KaroPayController@notify');
  268. Route::any('/karopay/sync_notify', 'Api\KaroPayController@sync_notify');
  269. Route::any('/karopay/cash_notify', 'Api\KaroPayController@cash_notify');
  270. //
  271. //Route::any('/bet_cat_pay/notify', 'Api\BetCatPayController@notify');
  272. //Route::any('/bet_cat_pay/sync_notify', 'Api\BetCatPayController@sync_notify');
  273. //Route::any('/bet_cat_pay/cash_notify', 'Api\BetCatPayController@cash_notify');
  274. //Route::any('/bet_cat_pay/agent_cash_notify', 'Api\BetCatPayController@agent_cash_notify');
  275. Route::any('/clear_cache', function () {
  276. $path = app()->basePath('/public/cache/');
  277. $dir = opendir($path);
  278. if (!$dir) {
  279. return apiReturnFail('open dir failed');
  280. }
  281. do {
  282. $file = readdir($dir);
  283. if (!$file) {
  284. break;
  285. }
  286. if ($file == '.' || $file == '..') {
  287. continue;
  288. }
  289. unlink($path.$file);
  290. } while ($file);
  291. return apiReturnSuc();
  292. });
  293. Route::any('/opcache/clear', 'Api\OpcacheController@index');
  294. Route::any('/adjust/report', 'Api\AdjustController@report');
  295. // Apcopay支付路由
  296. Route::prefix('apcopay')->group(function () {
  297. // 支付相关
  298. Route::post('pay_order', 'Api\ApcopayController@pay_order');
  299. // 支付回调
  300. Route::post('notify', 'Api\ApcopayController@notify');
  301. Route::post('callback', 'Api\ApcopayController@notify');
  302. // 同步通知
  303. Route::get('sync_notify', 'Api\ApcopayController@sync_notify');
  304. // 重定向路由 - 新增
  305. Route::get('redirect', 'Api\ApcopayController@sync_notify');
  306. // 提现回调
  307. Route::post('cash_notify', 'Api\ApcopayController@cash_notify');
  308. // 提现回调 - 新增
  309. Route::post('cash_callback', 'Api\ApcopayController@cash_callback');
  310. // 测试接口
  311. Route::get('test/payment', 'Api\ApcopayController@test_payment');
  312. Route::get('test/notify', 'Api\ApcopayController@test_notify');
  313. // 测试提现接口 - 新增
  314. Route::get('test/cashier', 'Api\ApcopayController@test_cashier');
  315. // 测试交易验证接口 - 新增
  316. Route::get('test/verify', 'Api\ApcopayController@test_verify_transaction');
  317. });
  318. /*
  319. |--------------------------------------------------------------------------
  320. | Agent Routes
  321. |--------------------------------------------------------------------------
  322. */
  323. Route::prefix('agent')->group(function () {
  324. Route::get('/info', 'Api\AgentController@getInfo');
  325. Route::get('/referrals', 'Api\AgentController@getReferrals');
  326. Route::get('/commissions', 'Api\AgentController@getCommissions');
  327. Route::get('/materials', 'Api\AgentController@getMaterials');
  328. Route::get('/tasks', 'Api\AgentController@getTasks');
  329. Route::post('/claim-reward', 'Api\AgentController@claimTaskReward');
  330. // 添加提现相关路由
  331. Route::get('/withdrawal-balance', 'Api\AgentController@getWithdrawalBalance');
  332. Route::get('/withdrawal-history', 'Api\AgentController@getWithdrawalHistory');
  333. Route::post('/request-withdrawal', 'Api\AgentController@requestWithdrawal');
  334. Route::post('/cancel-withdrawal', 'Api\AgentController@cancelWithdrawal');
  335. });
  336. // Public route for resetting daily commission (should be called via cron)
  337. Route::get('/agent/reset-daily-commission', 'Api\AgentController@resetDailyCommission');
  338. /*
  339. |--------------------------------------------------------------------------
  340. | Agent Click Tracking Routes
  341. |--------------------------------------------------------------------------
  342. */
  343. // 记录点击 - 公开访问(无需认证)
  344. Route::get('/click', 'Api\AgentClickController@recordClick');
  345. Route::get('/click2', 'Api\AgentClickController@recordClickPage');
  346. // 获取点击统计 - 需要认证
  347. Route::get('/agent/click-stats', 'Api\AgentClickController@getClickStats');
  348. // 公开获取成功提现记录展示
  349. //Route::get('/agent/recent-withdrawals', 'Api\AgentController@getRecentWithdrawals');