mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-01 22:10:30 +00:00
调整接口版本限制
This commit is contained in:
parent
13049f63c1
commit
c3588b4ac3
@ -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"));
|
||||
|
||||
@ -536,7 +536,6 @@ class FileController extends AbstractController
|
||||
*/
|
||||
public function content__save()
|
||||
{
|
||||
Base::checkClientVersion('0.13.68');
|
||||
$user = User::auth();
|
||||
//
|
||||
$id = Base::getPostInt('id');
|
||||
|
||||
@ -227,6 +227,8 @@ class UsersController extends AbstractController
|
||||
*/
|
||||
public function info()
|
||||
{
|
||||
Base::checkClientVersion('0.19.0');
|
||||
//
|
||||
$user = User::auth();
|
||||
User::token($user);
|
||||
//
|
||||
|
||||
@ -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: '服务器接口版本过低,部分功能可能无法正常使用。',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user