| 123456789101112131415161718192021222324252627 |
- <?php
- namespace app\workerapi\controller;
- use app\workerapi\lists\GoodsCategoryLists;
- use app\workerapi\logic\GoodsCategoryLogic;
- /**
- * 用户控制器
- * Class GoodsCategoryController
- * @package app\api\controller
- */
- class GoodsCategoryController extends BaseApiController
- {
- public function lists()
- {
- return $this->dataLists(new GoodsCategoryLists());
- }
- public function getQrCode()
- {
- $result = GoodsCategoryLogic::getQRCode();
- if (false === $result) {
- return $this->fail(GoodsCategoryLogic::getError());
- }
- return $this->success('生成二维码', ['qrcode'=>$this->request->domain().'/'.$result], 1, 1);
- }
- }
|