wukunwei 2 years ago
parent 49ef5633cd
commit ea6a085a8d

@ -38,7 +38,11 @@ class GarbageController extends Controller
]); ]);
$result = json_decode($response->getBody()->getContents(), true); $result = json_decode($response->getBody()->getContents(), true);
/**
* "score" => 0.45869
* "root" => "商品-香烟"
* "keyword" => "玉溪香烟"
*/
//$result['result']['advanced_general']['result']; //$result['result']['advanced_general']['result'];
$data = []; $data = [];
if (isset($result['result'])) { if (isset($result['result'])) {
@ -94,7 +98,11 @@ class GarbageController extends Controller
]); ]);
$result = json_decode($response->getBody()->getContents(), true); $result = json_decode($response->getBody()->getContents(), true);
/**
* "score" => 0.45869
* "root" => "商品-香烟"
* "keyword" => "玉溪香烟"
*/
//$result['result']['advanced_general']['result']; //$result['result']['advanced_general']['result'];
$data = []; $data = [];
if (isset($result['result'])) { if (isset($result['result'])) {

@ -20,7 +20,7 @@ class UserAnswersController extends Controller
return $this->ok($news); return $this->ok($news);
} }
//获取某个用户的答题结果 //获取某个同学的答题结果
public function show($id){ public function show($id){
$data = UserAnswers::query()->where(['users_id' => $id])->get()->toArray(); $data = UserAnswers::query()->where(['users_id' => $id])->get()->toArray();
return $this->ok($data); return $this->ok($data);

@ -8,7 +8,7 @@ class News extends Entity
'title', 'content' 'title', 'content'
]; ];
const nav = '垃圾分类公告管理'; const nav = '行业资讯管理';
public const columns = [ public const columns = [
'id' => 'ID', 'id' => 'ID',

@ -41,7 +41,7 @@
}, },
"compileType": "miniprogram", "compileType": "miniprogram",
"libVersion": "2.21.0", "libVersion": "2.21.0",
"appid": "wxc95026a54be32bb9", "appid": "wxc86cffaf8ad5022f",
"projectname": "garbage", "projectname": "garbage",
"condition": {}, "condition": {},
"editorSetting": { "editorSetting": {

@ -1,3 +1,9 @@
/*
* @Author: xuebingsi
* @Date: 2019-04-01 13:37:17
* @Last Modified by: zhibinm
* @Last Modified time: 2019-04-01 13:37:19
*/
.login-bg{ .login-bg{
/*background: #eeeeee url() 0 0 no-repeat;*/ /*background: #eeeeee url() 0 0 no-repeat;*/
background:url(../images/bg.png) no-repeat center; background:url(../images/bg.png) no-repeat center;

Loading…
Cancel
Save