| 1234567891011121314151617181920212223242526272829303132 |
- <?php
- /**
- * 推送消息
- */
- namespace app\appapi\controller;
- use cmf\controller\HomeBaseController;
- use think\facade\Db;
- use think\db\Query;
- class MessageController extends HomebaseController {
-
- /*官方推送信息详情*/
- public function msginfo(){
-
- $id = $this->request->param('id',0,'intval');
-
- //判断该信息是否存在
- $info=Db::name("admin_push")->where("id={$id}")->find();
- if(!$info){
- $this->assign("reason",lang('信息不存在'));
- return $this->fetch(':error');
- }
- $this->assign("info",$info);
-
- return $this->fetch();
-
- }
- }
|