12 changed files with 182 additions and 41 deletions
-
34app/Admin/Common/QRCode.php
-
80app/Admin/Controllers/v3/ServicePersonnelController.php
-
24app/Admin/Controllers/v3/StoreController.php
-
2app/Models/v3/Banners.php
-
2app/Models/v3/Category.php
-
2app/Models/v3/Goods.php
-
2app/Models/v3/GoodsActivity.php
-
2app/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 QRCode extends AdminController |
||||
|
{ |
||||
|
protected $images; |
||||
|
|
||||
|
public function __construct() |
||||
|
{ |
||||
|
$this->images = new Images(); |
||||
|
} |
||||
|
|
||||
|
/** |
||||
|
* 服务站专员评价小程序码 |
||||
|
*/ |
||||
|
public function getServicePersonnel($id, $path) |
||||
|
{ |
||||
|
$param = "page=details&id={$id}"; |
||||
|
$path = "zh_cjdianc/pages/Liar/loginindex"; |
||||
|
$codeStore = $this->images->createQrCode($param,$path); |
||||
|
$storeImgPath = 'QR_code/code_service_personnel_img/personnel_'.$id.'.jpg'; |
||||
|
$res = $this->images->uploadOss($codeStore,$storeImgPath); |
||||
|
if($res){ |
||||
|
return ['status' => true ,'path' => $storeImgPath]; |
||||
|
}else{ |
||||
|
return ['status' => false ,'path' => '']; |
||||
|
} |
||||
|
} |
||||
|
|
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue