\App\HelpersCommon

Summary

Methods
Properties
Constants
createPassword()
createNumber()
createNumbers()
formatTime()
json_array()
timeInterval()
goEasy()
vpost()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

createPassword()

createPassword(string  $pass) : string

生成密码

Parameters

string $pass

Returns

string

createNumber()

createNumber() 

生成订单号

createNumbers()

createNumbers() 

生成优惠券唯一编码

formatTime()

formatTime(  $data) : array

转时间格式

Parameters

$data

Returns

array

json_array()

json_array(  $result) : mixed

转数组

Parameters

$result

Returns

mixed

timeInterval()

timeInterval(  $start,   $end) : string

时间转换函数

Parameters

$start
$end

Returns

string

goEasy()

goEasy(  $order_id,   $mid,   $title,   $mark,   $content,   $data) : mixed

测试消息提醒

Parameters

$order_id
$mid
$title
$mark
$content
$data

Returns

mixed

vpost()

vpost(  $url,   $post_data) 

Parameters

$url
$post_data