| 123456789101112131415161718192021222324252627282930 |
- <?php
- namespace App\Http\Controllers\Api;
- use App\Http\Models\Common;
- use Illuminate\Http\Request;
- use App\Http\Controllers\Controller;
- use App\Models;
- class NoticeController extends Controller
- {
- /*
- * 系统公告
- */
- public function notice(Request $req){
- $Notice = new Models\Notice;
- $data = $Notice->notice_info();
- if(!$data){
- return toJson(-1);
- }
- return toJson(1,'',$data);
- }
- // 测试redis消息队列方法
- public function cs(){
- $msg = ['恭喜aa用户中奖1000元','恭喜bb用户中奖1000元','恭喜cc用户中奖1000元'];
- Common::addNotification($msg);
- // $get = Common::getNotification();
- // dump($get);die;
- }
- }
|