| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace App\Http\Controllers\Api;
- use App\Helpers\Jwt;
- use App\Http\Validator\MemberValidator;
- use App\Services\Api\AdService;
- use App\Services\Api\MemberService;
- use App\Services\ConfigService;
- use App\Services\EmailService;
- use App\Services\RedisService;
- use App\Services\SmsService;
- use App\Services\UsdtWalletService;
- /**
- * 异步回调控制器基类
- * Class NotifyController
- * @package App\Http\Controllers
- */
- class NotifyController extends webApp
- {
- /**
- * wallet
- * @return array
- */
- public function wallet()
- {
- RedisService::set("caches:wallet", request()->post(), 600);
- return message(1010, true);
- }
- public function trade()
- {
- $data = request()->all();
- $cacheKey = "caches:trade:notify:".date('YmdHis');
- RedisService::set($cacheKey, $data , 7200);
- }
- }
|