Browse Source
Merge branch 'develop' of http://120.24.33.109:11081/hyzjshwo/mp_lanzu_cat into develop
master
Merge branch 'develop' of http://120.24.33.109:11081/hyzjshwo/mp_lanzu_cat into develop
master
17 changed files with 256 additions and 84 deletions
-
2app/Admin/Common/StoreQRCode.php
-
34app/Admin/Common/WeChatQrCode.php
-
6app/Admin/Controllers/v3/BannersController.php
-
2app/Admin/Controllers/v3/GoodsActivityController.php
-
1app/Admin/Controllers/v3/GoodsNewController.php
-
132app/Admin/Controllers/v3/ServicePersonnelController.php
-
28app/Admin/Controllers/v3/StoreController.php
-
2app/Admin/Repositories/StoreUserReport.php
-
18app/Models/v3/Banners.php
-
2app/Models/v3/Category.php
-
10app/Models/v3/Goods.php
-
18app/Models/v3/GoodsActivity.php
-
10app/Models/v3/GoodsNew.php
-
57app/Models/v3/ServicePersonnel.php
-
4app/Models/v3/Store.php
-
10app/Models/v3/StoreNew.php
-
4config/filesystems.php
@ -0,0 +1,34 @@ |
|||
<?php |
|||
|
|||
namespace App\Admin\Common; |
|||
|
|||
use Dcat\Admin\Controllers\AdminController; |
|||
use EasyWeChat\Factory; |
|||
|
|||
class WeChatQrCode extends AdminController |
|||
{ |
|||
protected $images; |
|||
|
|||
public function __construct() |
|||
{ |
|||
$this->images = new Images(); |
|||
} |
|||
|
|||
/** |
|||
* 服务站专员评价小程序码 |
|||
*/ |
|||
public function getServicePersonnel($id) |
|||
{ |
|||
$param = "page=details&id={$id}"; |
|||
$path = "zh_cjdianc/pages/Liar/loginindex"; |
|||
$codeImg = $this->images->createQrCode($param,$path); |
|||
$imgPath = 'public/upload/qrcode/'.date('Y') . '/' . date('m-d') . '/' . date('His').md5(time()).'.png';/* 生成唯一文件名 */ |
|||
$res = $this->images->uploadOss($codeImg,$imgPath); |
|||
if($res){ |
|||
return ['status' => true ,'path' => $imgPath]; |
|||
}else{ |
|||
return ['status' => false ,'path' => '']; |
|||
} |
|||
} |
|||
|
|||
} |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue