Commit 94fa2497 authored by 冯超鹏's avatar 冯超鹏

no message

parent b5c99fe1
Pipeline #120 canceled with stages
<?php
namespace App\Http\Controllers;
use App\Http\Resources\PermissionResource;
use App\Http\Requests\UsersRequest;
use App\Http\Resources\UserResource;
use App\Laravue\JsonResponse;
use App\Laravue\Models\Device;
use App\Laravue\Models\Users;
use App\Laravue\Models\Homepage;
use Illuminate\Http\Request;
use Illuminate\Http\Resources\Json\ResourceCollection;
use Illuminate\Support\Arr;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Redis;
use Validator;
class UinappHomeController extends Controller
{
public function deviceDataInfo(){
// $data = DB::table('device as d')
// ->join('device_type as t','d.dtype','=','t.tid')
// ->join('gas as g','d.status','=','g.id')
// ->join('danwei as w','d.devicemonad','=','w.id')
// ->join('status as s','d.devicepolice','=','s.id')
// ->join('users as u','d.uid','=','u.id')
// ->where('d.id','=',$id)
// ->select('d.*','t.tname','g.gas','w.danwei','s.status_name','u.username','u.isadmin')
// ->first();
// return $this->jsonSuccessData($data);
return $this->jsonSuccessData('2313');
}
}
\ No newline at end of file
......@@ -122,7 +122,7 @@ Route::group(['middleware'=>'auth:api'],function (){
//uinapp 接口
Route::group(['middleware'=>'auth:api'],function (){
Route::get('huinapphome/devicedatainfo/{id}','HuinappHomeController@deviceDataInfo');//设备详情
Route::get('huinapphome/devicedatainfo/{id}','UinappHomeController@deviceDataInfo');//设备详情
});
// Fake APIs
Route::get('/table/list', function () {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment