💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
* 案例 ~~~ $json = []; $json['succeed'] = 0; $json['lab'] = 'kapian1'; empty($V_U->per(['line_block'])) ? $U_P->back($json, '处理成功',0,1) : NULL; $back = []; $data = []; $num = 0; $x = $y = []; for($i = 7; $i > 0; $i--){ $num += $i; $x[] = date('m-d',(TODAY-($i*86400))); $y[] = rand(1, 50); } $data['x'] = $x; $data['y'] = $y; $data['color'] = 'red'; //>图表颜色 $bili = round(($y[6]-$y[5]) / $y[5],2)*100 .'%'; $data['label'] = $bili; //>图表比值 $data['title'] = 'Demo'.$j; //>左上标题 $data['content'] = rand(100, 999); $back[] = $data; $json['data'] = $back; ~~~