调整接口版本限制

This commit is contained in:
kuaifan 2022-07-08 20:09:30 +08:00
parent 13049f63c1
commit c3588b4ac3
4 changed files with 3 additions and 12 deletions

View File

@ -455,14 +455,6 @@ class DialogController extends AbstractController
return Base::retSuccess('success', $data);
}
/**
* @deprecated
*/
public function msg__lists()
{
Base::checkClientVersion('0.18.12');
}
/**
* @api {get} api/dialog/msg/one 10. 获取单条消息
*
@ -544,7 +536,6 @@ class DialogController extends AbstractController
*/
public function msg__sendtext()
{
Base::checkClientVersion('0.13.33');
$user = User::auth();
//
$chat_information = Base::settingFind('system', 'chat_information');
@ -985,7 +976,6 @@ class DialogController extends AbstractController
*/
public function msg__emoji()
{
Base::checkClientVersion('0.17.67');
$user = User::auth();
//
$msg_id = intval(Request::input("msg_id"));

View File

@ -536,7 +536,6 @@ class FileController extends AbstractController
*/
public function content__save()
{
Base::checkClientVersion('0.13.68');
$user = User::auth();
//
$id = Base::getPostInt('id');

View File

@ -227,6 +227,8 @@ class UsersController extends AbstractController
*/
public function info()
{
Base::checkClientVersion('0.19.0');
//
$user = User::auth();
User::token($user);
//

View File

@ -133,7 +133,7 @@ export default {
if (status === 200) {
this.apiVersion = data.version || ''
//
if (this.compareVersion(this.apiVersion, '0.14.94') === -1) {
if (this.compareVersion(this.apiVersion, '0.19.0') === -1) {
$A.modalWarning({
title: '温馨提示',
message: '服务器接口版本过低,部分功能可能无法正常使用。',