Merge branch 'master' of https://gitea.dengshikj.com/dengshizzp/jk8_admin
This commit is contained in:
@@ -2,7 +2,9 @@
|
|||||||
|
|
||||||
namespace app\api\controller;
|
namespace app\api\controller;
|
||||||
|
|
||||||
|
use app\admin\model\Game;
|
||||||
use app\admin\model\PromoReward;
|
use app\admin\model\PromoReward;
|
||||||
|
use app\admin\model\Provider;
|
||||||
use app\common\controller\Api;
|
use app\common\controller\Api;
|
||||||
use app\common\model\Config;
|
use app\common\model\Config;
|
||||||
use app\common\service\JK8Services;
|
use app\common\service\JK8Services;
|
||||||
@@ -100,6 +102,21 @@ class External extends Api
|
|||||||
|
|
||||||
public function gameRtp()
|
public function gameRtp()
|
||||||
{
|
{
|
||||||
return json(['status'=> 'OK']);
|
$provider = $this->request->param('provider');
|
||||||
|
$limit = request()->param('limit/d') ?? 15;
|
||||||
|
|
||||||
|
$where = [];
|
||||||
|
if (!empty($provider)) {
|
||||||
|
$where[] = ['provider_site', '=', $provider];
|
||||||
|
}
|
||||||
|
$res = Game::where($where)
|
||||||
|
->order('id', 'desc')
|
||||||
|
->paginate($limit);
|
||||||
|
|
||||||
|
$this->success('', [
|
||||||
|
'provider' => Provider::column('site'),
|
||||||
|
'list' => $res->items(),
|
||||||
|
'total' => $res->total(),
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user