代码初始化

This commit is contained in:
2025-08-07 20:21:47 +08:00
commit 50f3a2dbb0
2191 changed files with 374790 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
<?php
namespace app\api\controller;
use app\common\controller\BaseCom;
use think\Controller;
use think\Db;
class Level extends BaseCom
{
//初始化
protected function initialize()
{
//允许跨域
header('Access-Control-Allow-Origin: *');
}
//魅力等级规则说明
public function get_level_rule()
{
$uid = $this->uid;
$reslut = model('Level')->get_level_rule($uid);
return V($reslut['code'],$reslut['msg'], $reslut['data']);
}
//财富等级规则说明
public function get_wealth_rule(){
$uid = $this->uid;
$reslut = model('Level')->get_wealth_rule($uid);
return V($reslut['code'],$reslut['msg'], $reslut['data']);
}
//领取金币奖励
public function get_gold_reward(){
$uid = $this->uid;
$reslut = model('Level')->get_wealth_level_reward($uid);
return V($reslut['code'],$reslut['msg'], $reslut['data']);
}
}