123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- /**
- * Created by PhpStorm.
- * User: Bear
- * Date: 2019/11/28
- * Time: 下午1:36
- */
- use app\main\service\FufenService;
- use app\common\library\Redis;
- use app\main\constants\CacheConstants;
- class FufenTest extends TestInit
- {
- public $user_id = 60063;
- public $channel_id = 1734;
- public function testId()
- {
- $cache = CacheConstants::getWxpayFunfen($this->user_id);
- Redis::instance()->sAdd($cache, 40);
- $id = FufenService::instance()->getWxpayId($this->user_id, $this->channel_id);
- var_dump($id);
- }
- public function testUrl()
- {
- $cache = CacheConstants::getWxpayFunfen($this->user_id);
- // Redis::instance()->del($cache);
- Redis::instance()->sAdd($cache, 40);
- $url = FufenService::instance()->getPayUrl($this->user_id, $this->channel_id)->data;
- var_dump($url);
- }
- public function testClearWxpay()
- {
- Redis::delScan('WXP:*');
- }
- public function testRedis()
- {
- $data = Redis::instance()->get(CacheConstants::getChannelWxpayIds(1734));
- var_dump($data);
- }
- }
|