\app\api\model\dealerApply

分销商申请模型 Class Apply

Summary

Methods
Properties
Constants
isApplying()
submit()
No public properties found
No constants found
No protected methods found
$hidden
N/A
add()
No private properties found
N/A

Properties

$hidden

$hidden : array

隐藏字段

Type

array

Methods

isApplying()

isApplying(  $user_id) : boolean

是否为分销商申请中

Parameters

$user_id

Throws

\think\exception\DbException

Returns

boolean

submit()

submit(  $user,   $name,   $mobile) : boolean

提交申请

Parameters

$user
$name
$mobile

Throws

\think\exception\DbException
\think\exception\PDOException

Returns

boolean

add()

add(  $user,   $data) : boolean

更新分销商申请信息

Parameters

$user
$data

Throws

\think\exception\DbException
\think\exception\PDOException

Returns

boolean