| 1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- namespace app\workerapi\logic;
- use app\common\logic\BaseLogic;
- use app\common\service\wechat\WeChatConfigService;
- use app\common\service\wechat\WeChatMnpService;
- use EasyWeChat\MiniApp\Application;
- /**
- * 服务商品逻辑处理
- * Class GoodsCategoryLogic
- * @package app\workerapi\logic
- */
- class GoodsCategoryLogic extends BaseLogic
- {
- /**
- * @return \EasyWeChat\Kernel\HttpClient\Response|false|\Symfony\Contracts\HttpClient\ResponseInterface
- */
- public static function getQRCode()
- {
- $config = WeChatConfigService::getMnpConfig();
- $app = new Application($config);
- $response = $app->getClient()->postJson('/wxa/getwxacodeunlimit', [
- 'scene' => '123',
- 'page' => 'pages/good/good',
- 'width' => 430,
- 'check_path' => false,
- 'env_vesion' => 'trial'
- ]);
- dd($response);
- }
- }
|