mirror of
https://github.com/kuaifan/dootask.git
synced 2026-03-17 11:13:26 +00:00
调整接口版本限制
This commit is contained in:
parent
13049f63c1
commit
c3588b4ac3
@ -455,14 +455,6 @@ class DialogController extends AbstractController
|
|||||||
return Base::retSuccess('success', $data);
|
return Base::retSuccess('success', $data);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @deprecated
|
|
||||||
*/
|
|
||||||
public function msg__lists()
|
|
||||||
{
|
|
||||||
Base::checkClientVersion('0.18.12');
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @api {get} api/dialog/msg/one 10. 获取单条消息
|
* @api {get} api/dialog/msg/one 10. 获取单条消息
|
||||||
*
|
*
|
||||||
@ -544,7 +536,6 @@ class DialogController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
public function msg__sendtext()
|
public function msg__sendtext()
|
||||||
{
|
{
|
||||||
Base::checkClientVersion('0.13.33');
|
|
||||||
$user = User::auth();
|
$user = User::auth();
|
||||||
//
|
//
|
||||||
$chat_information = Base::settingFind('system', 'chat_information');
|
$chat_information = Base::settingFind('system', 'chat_information');
|
||||||
@ -985,7 +976,6 @@ class DialogController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
public function msg__emoji()
|
public function msg__emoji()
|
||||||
{
|
{
|
||||||
Base::checkClientVersion('0.17.67');
|
|
||||||
$user = User::auth();
|
$user = User::auth();
|
||||||
//
|
//
|
||||||
$msg_id = intval(Request::input("msg_id"));
|
$msg_id = intval(Request::input("msg_id"));
|
||||||
|
|||||||
@ -536,7 +536,6 @@ class FileController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
public function content__save()
|
public function content__save()
|
||||||
{
|
{
|
||||||
Base::checkClientVersion('0.13.68');
|
|
||||||
$user = User::auth();
|
$user = User::auth();
|
||||||
//
|
//
|
||||||
$id = Base::getPostInt('id');
|
$id = Base::getPostInt('id');
|
||||||
|
|||||||
@ -227,6 +227,8 @@ class UsersController extends AbstractController
|
|||||||
*/
|
*/
|
||||||
public function info()
|
public function info()
|
||||||
{
|
{
|
||||||
|
Base::checkClientVersion('0.19.0');
|
||||||
|
//
|
||||||
$user = User::auth();
|
$user = User::auth();
|
||||||
User::token($user);
|
User::token($user);
|
||||||
//
|
//
|
||||||
|
|||||||
@ -133,7 +133,7 @@ export default {
|
|||||||
if (status === 200) {
|
if (status === 200) {
|
||||||
this.apiVersion = data.version || ''
|
this.apiVersion = data.version || ''
|
||||||
// 检查接口版本
|
// 检查接口版本
|
||||||
if (this.compareVersion(this.apiVersion, '0.14.94') === -1) {
|
if (this.compareVersion(this.apiVersion, '0.19.0') === -1) {
|
||||||
$A.modalWarning({
|
$A.modalWarning({
|
||||||
title: '温馨提示',
|
title: '温馨提示',
|
||||||
message: '服务器接口版本过低,部分功能可能无法正常使用。',
|
message: '服务器接口版本过低,部分功能可能无法正常使用。',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user