12345678910111213141516171819 |
- <?php
- namespace app\api\Model;
- use think\Model;
- class AboutUsModel extends Model
- {
- protected $name = 'about_us';
- public function index()
- {
- $data = $this->alias('a')->find();
- if ($data) {
- return json(['data' => $data, 'msg' => '', 'code' => 200]);
- } else {
- return json(['data' => [], 'msg' => '暂无信息', 'code' => 100]);
- }
- }
- }
|