1234567891011121314151617181920212223242526272829 |
- <?php
- namespace catchAdmin\api\controller;
- use catcher\base\CatchRequest as Request;
- use catcher\CatchResponse;
- use catcher\base\CatchController;
- class Api extends CatchController
- {
- /**
- * 获取所有用户列表
- * @time 2022年06月09日 14:22
- */
- public function getUserList(){
- $imei = $_GET['imei'];
- if (empty($imei)) {
- $res=['success'=>false,'message'=>'缺少设备IMEI号参数'];
- return json_encode($res,JSON_UNESCAPED_UNICODE);
- }
- //检测imei号是否在数据库中
-
- //请求成功返回数据
- $res=['success'=>true,'message'=>'获取成功','data'=>''];
- return json_encode($res,JSON_UNESCAPED_UNICODE);
- }
- }
|