最新菠菜源码网站搭建,支持接入接口,体育菠菜源码

最新菠菜源码搭建一条龙,接口全免,能够加企鹅:783169308 php

最主要的前端提交学生学号(sno)给Api Api接口返回此学生的基本信息,bi ag bbin 接口是如何写代码的前端

 

API接口端

<?php namespace app\index\controller; use think\Controller; use app\index\model\Student; class User { public function index() { return $this->fetch(); } // 客户端提交学生学号(sno)给api api返回此学生的基本信息 public function api($sno='0001') { // 查询 并把数据赋值给 $data $data = Student::getBysno($sno); // 返回数据 return json($data); } }

这个实例实现这样一个功能参照json

相关文章
相关标签/搜索