\app\common\service\qrcodeBase

二维码服务基类 Class Base

Summary

Methods
Properties
Constants
__construct()
No public properties found
No constants found
saveQrcode()
saveTempImage()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

构造方法 Base constructor.

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