\app\task\behaviorOrder

订单行为管理 Class Order

Summary

Methods
Properties
Constants
run()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
master()
close()
receive()
settled()
onReceiveCompleted()
dologs()
$model
$service
$wxappId
N/A

Properties

$model

$model : 

Type

$service

$service : 

Type

$wxappId

$wxappId : 

Type

Methods

run()

run(  $model) : boolean

执行函数

Parameters

$model

Returns

boolean

master()

master() : boolean

普通订单行为管理

Returns

boolean

close()

close(  $closeDays) : boolean

未支付订单自动关闭

Parameters

$closeDays

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException
\Exception

Returns

boolean

receive()

receive(  $receiveDays) : boolean|false|integer

已发货订单自动确认收货

Parameters

$receiveDays

Throws

\think\Exception
\think\exception\DbException

Returns

boolean|false|integer

settled()

settled(  $refundDays) 

已完成订单结算

Parameters

$refundDays

Throws

\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException
\Exception

onReceiveCompleted()

onReceiveCompleted(  $orderIds) : boolean

批量处理已完成的订单

Parameters

$orderIds

Throws

\think\Exception
\think\db\exception\DataNotFoundException
\think\db\exception\ModelNotFoundException
\think\exception\DbException

Returns

boolean

dologs()

dologs(  $method, array  $params = array()) : boolean|integer

记录日志

Parameters

$method
array $params

Returns

boolean|integer