add:增加影圈功能,优化部分接口

This commit is contained in:
2025-05-10 19:47:12 +08:00
parent 1c53b73614
commit e0e42e3ecc
13 changed files with 431 additions and 63 deletions

View File

@@ -4,11 +4,11 @@ namespace addons\shopro\controller\zy;
use think\Db;
use think\Exception;
use app\admin\model\User;
use app\admin\model\zy\Menber;
use think\exception\PDOException;
use app\admin\model\zy\link\Apply;
use app\admin\model\zy\link\Message;
use app\admin\model\shopro\user\User;
use app\admin\model\zy\game\Activity;
use think\exception\ValidateException;
@@ -27,6 +27,9 @@ class Club extends Base
if (isset($params['name'])) {
$model->where('name', 'like', '%' . $params['name'] . '%');
}
if (isset($params['gym_id'])) {
$model->where('gym_id', $params['gym_id']);
}
$res = $model->select();
$this->success('Success', $res);
@@ -52,7 +55,7 @@ class Club extends Base
$this->error($e->getMessage());
}
if ($result === false) {
$this->error(__('No rows were inserted'));
$this->error('操作失败');
}
$this->success('Success', $result);
}