Properties

$request

$request : \think\Request

Request实例

Type

Request

$app

$app : \think\App

应用实例

Type

App

$batchValidate

$batchValidate : bool

是否批量验证

Type

bool

$middleware

$middleware : array

控制器中间件

Type

array

Methods

__construct()

__construct(\think\App  $app) : mixed

构造方法

Parameters

\think\App $app

应用对象

Returns

mixed —

store()

store() : mixed

Returns

mixed —

getFrame()

getFrame() : mixed

Returns

mixed —

saveFrame()

saveFrame() : mixed

Returns

mixed —

goodsRecord()

goodsRecord() : mixed

Returns

mixed —

goodsScan()

goodsScan() : mixed

Returns

mixed —

goodsDepot()

goodsDepot() : mixed

Returns

mixed —

recentPrice()

recentPrice() : mixed

Returns

mixed —

getSerial()

getSerial() : mixed

Returns

mixed —

getBatch()

getBatch() : mixed

Returns

mixed —

billRecord()

billRecord() : mixed

Returns

mixed —

getScene()

getScene() : mixed

Returns

mixed —

roleRecord()

roleRecord() : mixed

Returns

mixed —

userRecord()

userRecord() : mixed

Returns

mixed —

peopleRecord()

peopleRecord() : mixed

Returns

mixed —

warehouseRecord()

warehouseRecord() : mixed

Returns

mixed —

supplierRecord()

supplierRecord() : mixed

Returns

mixed —

customerRecord()

customerRecord() : mixed

Returns

mixed —

accountRecord()

accountRecord() : mixed

Returns

mixed —

ietRecord()

ietRecord() : mixed

Returns

mixed —

getCost()

getCost() : mixed

Returns

mixed —

getDeploy()

getDeploy() : mixed

Returns

mixed —

fieldUpload()

fieldUpload() : mixed

Returns

mixed —

editorUpload()

editorUpload() : mixed

Returns

mixed —

getUpgrade()

getUpgrade() : mixed

Returns

mixed —

clachCache()

clachCache() : mixed

Returns

mixed —

out()

out() : mixed

Returns

mixed —

initialize()

initialize() : mixed

Returns

mixed —

validate()

validate(array  $data, string|array  $validate, array  $message = [], bool  $batch = false) : array|string|true

验证数据

Parameters

array $data

数据

string|array $validate

验证器名或者验证规则数组

array $message

提示信息

bool $batch

是否批量验证

Throws

\think\exception\ValidateException

Returns

array|string|true —