auth
This commit is contained in:
33
app/Const/Im.php
Normal file
33
app/Const/Im.php
Normal file
@ -0,0 +1,33 @@
|
||||
<?php
|
||||
namespace App\Const;
|
||||
|
||||
class Im{
|
||||
|
||||
const USER_PREFIX = 'cycle_';
|
||||
|
||||
//平台ID, 1:IOS,2:Android,3:Windows,4:OSX,5:Web,6:MiniWeb,7:Linux,8:Android Pad,9:IPad,10:admin
|
||||
const PLATFORM_IOS = 1;
|
||||
const PLATFORM_ANDROID = 2;
|
||||
const PLATFORM_WINDOWS = 3;
|
||||
const PLATFORM_OSX = 4;
|
||||
const PLATFORM_WEB = 5;
|
||||
const PLATFORM_MINIWEB = 6;
|
||||
const PLATFORM_LINUX = 7;
|
||||
const PLATFORM_ANDROID_PAD = 8;
|
||||
const PLATFORM_IPAD = 9;
|
||||
const PLATFORM_ADMIN = 10;
|
||||
const PLATFORM = [
|
||||
self::PLATFORM_IOS,
|
||||
self::PLATFORM_ANDROID,
|
||||
self::PLATFORM_WINDOWS,
|
||||
self::PLATFORM_OSX,
|
||||
self::PLATFORM_WEB,
|
||||
self::PLATFORM_MINIWEB,
|
||||
self::PLATFORM_LINUX,
|
||||
self::PLATFORM_ANDROID_PAD,
|
||||
self::PLATFORM_IPAD,
|
||||
self::PLATFORM_ADMIN,
|
||||
];
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user