|
@@ -5,7 +5,7 @@ namespace App\Models;
|
|
|
class JisuGameplay extends BaseModel
|
|
class JisuGameplay extends BaseModel
|
|
|
{
|
|
{
|
|
|
protected $table = 'jisu_gameplay';
|
|
protected $table = 'jisu_gameplay';
|
|
|
- protected $fillable = [ 'game', 'game_en', 'gameplay', 'gameplay_en', 'number', 'number_en', 'odds','type','maxinum','mininum'];
|
|
|
|
|
|
|
+ protected $fillable = [ 'game', 'gameplay','number', 'odds','type','maxinum','mininum'];
|
|
|
|
|
|
|
|
public static function getGame($type) {
|
|
public static function getGame($type) {
|
|
|
$list = JisuGameplay::where('type',$type)->get()->toArray();
|
|
$list = JisuGameplay::where('type',$type)->get()->toArray();
|
|
@@ -14,14 +14,12 @@ class JisuGameplay extends BaseModel
|
|
|
if (!isset($tree[$item['gameplay']])) {
|
|
if (!isset($tree[$item['gameplay']])) {
|
|
|
$tree[$item['gameplay']] = [
|
|
$tree[$item['gameplay']] = [
|
|
|
'gameplay' => $item['gameplay'],
|
|
'gameplay' => $item['gameplay'],
|
|
|
- 'gameplay_en' => $item['gameplay_en'],
|
|
|
|
|
];
|
|
];
|
|
|
}
|
|
}
|
|
|
$tree[$item['gameplay']]['children'][] = [
|
|
$tree[$item['gameplay']]['children'][] = [
|
|
|
'id' => $item['id'],
|
|
'id' => $item['id'],
|
|
|
'type' => $item['type'],
|
|
'type' => $item['type'],
|
|
|
'name' => $item['number'],
|
|
'name' => $item['number'],
|
|
|
- 'name_en' => $item['number_en'],
|
|
|
|
|
'odds' => $item['odds'],
|
|
'odds' => $item['odds'],
|
|
|
'maxinum' => $item['maxinum'],
|
|
'maxinum' => $item['maxinum'],
|
|
|
'mininum' => $item['mininum'],
|
|
'mininum' => $item['mininum'],
|