Commit a94960cd by 杨昕

code format

parent 844a2eb0
Pipeline #16528 passed with stages
in 54 seconds
...@@ -22,14 +22,15 @@ class ActiveCodeController extends Controller ...@@ -22,14 +22,15 @@ class ActiveCodeController extends Controller
$client = new Client(); $client = new Client();
$result = $client->get(self::SECRET_DOC."/api/license?doc_id=".$request->doc_id); $result = $client->get(self::SECRET_DOC."/api/license?doc_id=".$request->doc_id);
$datas = json_decode($result->getBody(),true); $res = json_decode($result->getBody(),true);
if (!isset($datas["data"])){ if (!isset($res["data"])){
$data["media_categories"] = []; $data["activity_codes"] = [];
}else{ }else{
$data["media_categories"] = $datas["data"]["license"]; $data["activity_codes"] = $res["data"]["license"];
$data["mobile"] = $res["data"]["mobile"];
} }
}else{ }else{
$data["media_categories"] = []; $data["activity_codes"] = [];
} }
return view('admin.active_code.list',$data); return view('admin.active_code.list',$data);
......
...@@ -270,7 +270,7 @@ ...@@ -270,7 +270,7 @@
"id": 4, "id": 4,
"pid": 0, "pid": 0,
"name": "激活码管理", "name": "激活码管理",
"icon": "", "icon": "",
"link": "/active_code", "link": "/active_code",
"slug": "active_code.index", "slug": "active_code.index",
"description": "", "description": "",
......
...@@ -295,18 +295,17 @@ ...@@ -295,18 +295,17 @@
"son": [], "son": [],
"have":1 "have":1
},{ },{
"id": 11, "id": 4,
"pid": 0, "pid": 0,
"name": "媒体资源上传", "name": "激活码管理",
"icon": "", "icon": "",
"link": "/media_command", "link": "/active_code",
"slug": "media_command", "slug": "active_code.index",
"description": "", "description": "",
"show": 1, "show": 1,
"sort": 2, "sort": 1,
"key_name": "media_command", "key_name": "active_code",
"son": [], "son": []
"have":1
},{ },{
"id": 12, "id": 12,
"pid": 0, "pid": 0,
......
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