'int', // 自增ID 'user_id' => 'int', // 用户ID 'app_id' => 'int', // 商家ID 'uname' => 'int', // 平台用户的id 必须唯一 'balance' => 'decimal', // 分数 'hash' => 'string', // 分数 校验 'create_time' => 'int', // 创建时间 'update_time' => 'int', // 更新时间 ]; public static function getUsersBalanceList($app_id, $user_ids) { $where = []; $where[] = ['app_id', '=', $app_id]; $where[] = ['user_id', 'in', $user_ids]; $list = self::where($where)->select()->toArray(); $user_config = array_column($list, null, 'user_id'); return $user_config; } }