recognize(ATTACHMENT_PATH.'/temp/20250922/answer1.jpeg'); // $result = (new TesseractOCR(ATTACHMENT_PATH.'/temp/20250922/answer1.jpeg'))->lang('chi_sim')->run(); //dump($result); // return 66; $data = [ 'answer'=> 'answer: "亲爱的小雅:↵ 本人因临时有急事不得不出门,故原计划与你相约去看的话剧无法准时应约,望谅解。我们改日再约。↵友:晓芙↵2025年2月1日', // 'answer'=> 'https://shuati.derkj.com/uploads/temp/20250922/answer1.jpeg', 'score'=>10, // 'topic'=> 'https://shuati.derkj.com/uploads/temp/20250922/topic2.png', 'topic'=> '四、材料写作题(共40分)
(一)应用文写作(10分)
29晓芙和小雅原计划2025年2月1日中午12点去看话剧,可晓芙临时有急事要出门。请你根据下面的模板以晓芙的名义给小雅写一张留言条。
__:
__,望谅解。我们改日再约。
友:__
2025年__', 'type'=> 2 ]; // $result = DeepSeekService::make()->upload('/temp/20250922/topic2.jpeg'); $result = DeepSeekService::make()->apiRequest($data,'deepseek-chat'); dump($result); // $papers = [28,29]; // $datas = []; // $topics = ExamTopicModel::where(['paper_id'=>27])->orderBy('id')->get(); // $topics = $topics? $topics->toArray() : []; // foreach ($papers as $paperId){ // foreach($topics as &$item){ // unset($item['id']); // $item['paper_id'] = $paperId; // $datas[] = $item; // } // } // // ExamTopicModel::insert($datas); // var_dump($topics); } }