123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- <?php
- namespace app\admin\controller;
- use app\BaseController;
- use app\common\model\base\msg\Notice;
- use upload\Uploader;
- class Index extends BaseController
- {
- public function index()
- {
- $url = request()->domain().'/admin/#/applyNav';
- header("Location: $url");
- }
-
-
- public function WxSubEvent()
- {
- $url = 'http://iddserver.app2.hbdrwh.cn/admin/index/WxSubEvent';
- $wx = new \weixin\Wx;
- $res = $wx->WxEvent(0);
- return response($res)->header([
- 'Content-Type' => 'text/plain;charset=utf-8'
- ]);
- }
-
-
- public function WxSubTestMsg()
- {
- $tpl_id = "MPTRdM8KQ1-eDMNuBs0lhcxsLiK-3qTbju_hpHFZX48";
- $res = Notice::sendWx(1,['闫石',18,'男'],$tpl_id);
- WLog('WxSubTestMsg',json_encode($res));
- return json($res);
- }
- }
|