作者 lyh

变更数据

@@ -65,18 +65,6 @@ class lyhDemo extends Command @@ -65,18 +65,6 @@ class lyhDemo extends Command
65 return true; 65 return true;
66 } 66 }
67 67
68 - public function getExpectResult(){  
69 - $geo_service = new GeoService();  
70 - $question = 'Top AI Coffee Robot';  
71 - $answer = "Top AI Coffee Robot\" refers to advanced robotic systems that combine **precision automation, artificial intelligence, and specialty coffee expertise** to create high-quality beverages with minimal human intervention. Here's a breakdown of key features, leading examples, and benefits:\n\n### Core Features of Top AI Coffee Robots:\n1. **AI-Driven Customization** \n - Analyzes user preferences (strength, milk type, sweetness) via app profiles or voice commands. \n - Learns from feedback to refine future orders (e.g., \"less bitter than last time\"). \n2. **Robotic Precision Brewing** \n - Industrial arms handle grinding, tamping, steaming milk, and latte art with sub-millimeter accuracy. \n - Sensors monitor temperature, extraction time, and pressure for optimal flavor.";  
72 - $expect = "While I don't have specific information on the RobotAnno coffee machine, in general";  
73 - $str = "客户提出的问题:{$question},客户得到的回复:{$answer},客户需要预期:{$expect},请分析得到的回复和预期是否一致,仅回复我是或者否";  
74 - $data = $geo_service->getChatResult($str, 'gpt-4o-mini');  
75 - if(isset($data['text']) && $data['text'] == '是'){  
76 -  
77 - }  
78 - }  
79 -  
80 /** 68 /**
81 * @remark :查看路由是否为空 69 * @remark :查看路由是否为空
82 * @name :_actionRoute 70 * @name :_actionRoute
@@ -48,7 +48,7 @@ class CountLogic extends BaseLogic @@ -48,7 +48,7 @@ class CountLogic extends BaseLogic
48 $domain = parse_url($this->user['domain'], PHP_URL_HOST); // 直接取域名部分 48 $domain = parse_url($this->user['domain'], PHP_URL_HOST); // 直接取域名部分
49 $inquiry_list = (new FormGlobalsoApi())->getInquiryAll($domain,$this->user['is_upgrade']); 49 $inquiry_list = (new FormGlobalsoApi())->getInquiryAll($domain,$this->user['is_upgrade']);
50 if($inquiry_list !== false){ 50 if($inquiry_list !== false){
51 - if($inquiry_list['status'] != 400){ 51 + if(isset($inquiry_list['status']) && $inquiry_list['status'] != 400){
52 $info['inquiry_num'] = $inquiry_list['data']['count']; 52 $info['inquiry_num'] = $inquiry_list['data']['count'];
53 Cache::add('inquiry_num_'.$this->user['project_id'],$inquiry_list['data']['count'],3600); 53 Cache::add('inquiry_num_'.$this->user['project_id'],$inquiry_list['data']['count'],3600);
54 } 54 }