\app\common\service\qrcodeExtract

订单核销二维码 Class Extract

Summary

Methods
Properties
Constants
__construct()
getImage()
No public properties found
No constants found
saveQrcode()
saveTempImage()
No protected properties found
N/A
savePoster()
getPosterPath()
getPosterName()
getPosterUrl()
$wxappId
$user
$orderId
$orderType
N/A

Properties

$wxappId

$wxappId : 

Type

$user

$user : 

Type

$orderId

$orderId : 

Type

$orderType

$orderType : 

Type

Methods

__construct()

__construct(  $wxappId,   $user,   $orderId,   $orderType = \app\common\enum\OrderType::MASTER) 

构造方法 Extract constructor.

Parameters

$wxappId
$user
$orderId
$orderType

getImage()

getImage() : mixed

获取小程序码

Throws

\app\common\exception\BaseException
\think\exception\DbException
\Exception

Returns

mixed

saveQrcode()

saveQrcode(  $wxapp_id,   $scene, null  $page = null) : string

保存小程序码到文件

Parameters

$wxapp_id
$scene
null $page

Throws

\app\common\exception\BaseException
\think\exception\DbException

Returns

string

saveTempImage()

saveTempImage(  $wxapp_id,   $url, string  $mark = 'temp') : string

获取网络图片到临时目录

Parameters

$wxapp_id
$url
string $mark

Returns

string

savePoster()

savePoster(  $qrcode) 

Parameters

$qrcode

getPosterPath()

getPosterPath() : string

二维码文件路径

Returns

string

getPosterName()

getPosterName() : string

二维码文件名称

Returns

string

getPosterUrl()

getPosterUrl() : string

二维码url

Returns

string