\app\controller\admin\plugin\aliSms

阿里云手机短信管理

Summary

Methods
Properties
Constants
_initialize()
buildSearchParams()
buildOrder()
index()
info()
add()
edit()
del()
recycle()
restore()
trueDel()
__construct()
success()
error()
exceptionError()
No public properties found
No constants found
initialize()
$noNeedLogin
$noNeedAuth
$hasSoftDel
$orderRule
$middleware
$request
$app
$model
N/A
No private methods found
No private properties found
N/A

Properties

$noNeedLogin

$noNeedLogin : 

Type

$noNeedAuth

$noNeedAuth : 

Type

$hasSoftDel

$hasSoftDel : 

Type

$orderRule

$orderRule : 

Type

$middleware

$middleware : array

控制器中间件

Type

array

$request

$request : \think\Request

Request实例

Type

\think\Request

$app

$app : \think\App

应用实例

Type

\think\App

Methods

_initialize()

_initialize() 

buildSearchParams()

buildSearchParams() : array

生成查询条件 post方式传递了search_param参数,就说明是进行筛选搜索 search_param格式: search_param : { 数据库字段 : { value : 值, condition : 搜索条件 } }

Returns

array

buildOrder()

buildOrder() 

生成排序条件

index()

index() 

info()

info() 

add()

add() 

edit()

edit() 

del()

del() 

recycle()

recycle() 

restore()

restore() 

trueDel()

trueDel() 

__construct()

__construct(\think\App  $app) 

构造方法

Parameters

\think\App $app

应用对象

success()

success(string  $msg = '', null  $data = null) : false|string|\think\response\Json

操作成功返回数据

Parameters

string $msg
null $data

Returns

false|string|\think\response\Json

error()

error(string  $msg = '', integer  $code = 1, array  $data = null) : \think\response\Json

操作失败返回数据

Parameters

string $msg
integer $code

错误码,为0表示没有错误,为1表示常规错误,前端仅需提示msg,其他值有具体含义,比如10401为未登录,前端需要跳转至登录界面

array $data

Returns

\think\response\Json

exceptionError()

exceptionError(  $e) : \think\response\Json

捕获异常后返回数据

Parameters

$e

Returns

\think\response\Json

initialize()

initialize()