| 123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace app\api\controller\user;
- use app\models\coin\UserCoinTransfer;
- use app\models\redis\UserHash;
- use app\models\system\DictCoin;
- use app\Request;
- use crmeb\services\JsonService;
- use think\facade\Config;
- use think\facade\Log;
- use think\facade\Cache;
- /**
- *
- * activities json 配置:
- mining:
- {
- "enabled": 1,
- "symbol": "btc",
- }
- * Class UserNotificationController
- * @package app\api\controller\user
- */
- class UserNotificationController {
- /**
- * 定时请求的状态接口
- * @param Request $request
- */
- public function snapshot(Request $request) {
- $uid = $request->uid();
- // 未读消息
- $unread = UserHash::unread_get($uid);
- return app('json')->successful([
- 'unread': intval($unread),
- ]));
- }
- }
|