apply-clients 3.5.5-7 → 3.5.5-71
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/dev-server.js +4 -12
- package/package.json +5 -3
- package/src/App.vue +25 -25
- package/src/apply.js +141 -141
- package/src/components/QXClient.js +333 -0
- package/src/components/SignTools.js +65 -0
- package/src/components/android/Process/AppChargeList.vue +8 -0
- package/src/components/android/Process/AppExplorationUser.vue +1 -1
- package/src/components/product/Function/Service/FunctionServiceControl.vue +497 -497
- package/src/components/product/MaterialsManage/MaterialsBase.vue +181 -181
- package/src/components/product/MaterialsManage/MaterialsManage.vue +60 -60
- package/src/components/product/Process/Processes/contractModel.vue +436 -454
- package/src/components/product/Supervisory/SupervisoryList.vue +452 -452
- package/src/filiale/baiyin/android/ByAddMaterialScience.vue +2 -0
- package/src/filiale/dingcheng/pc/SupervisoryList.vue +441 -441
- package/src/filiale/fugou/android/AppAddMaterialScience.vue +20 -16
- package/src/filiale/fugou/android/AppDevicesManagement.vue +3 -1
- package/src/filiale/fugou/android/AppExplorationUser.vue +2 -2
- package/src/filiale/fugou/android/AppInstallationDetails.vue +2 -1
- package/src/filiale/fugou/android/AppServiceControl.vue +11 -7
- package/src/filiale/fugou/android/AppZhihuanManagement.vue +3 -1
- package/src/filiale/fugou/pc/ApplyChargeList.vue +4 -0
- package/src/filiale/fugou/pc/ExplorationSelect.vue +3 -4
- package/src/filiale/fugou/pc/ServiceControl.vue +19 -10
- package/src/filiale/fugou/pc/StopApplyList.vue +291 -0
- package/src/filiale/fugou/pc/SupervisoryServiceControl.vue +881 -0
- package/src/filiale/fugou/pc/addressAndUserinfoManagement.vue +1 -1
- package/src/filiale/fugou/pc/chargeReport.vue +87 -15
- package/src/filiale/fugou/pc/devicesManagement.vue +1 -0
- package/src/filiale/fugou/pc.js +3 -1
- package/src/filiale/gongyi/android/AppDisclosurerecord.vue +214 -214
- package/src/filiale/gongyi/android/AppInstallationDetails.vue +500 -500
- package/src/filiale/gongyi/android/AppLegacyIssues.vue +309 -309
- package/src/filiale/gongyi/android/AppSign.vue +170 -170
- package/src/filiale/gongyi/android/AppSupplementalAgreement.vue +298 -298
- package/src/filiale/gongyi/android.js +18 -18
- package/src/filiale/gongyi/pc/ApplyUpload.vue +371 -371
- package/src/filiale/gongyi/pc/PcAddLogs.vue +221 -221
- package/src/filiale/gongyi/pc/PcDisclosurerecord.vue +218 -218
- package/src/filiale/gongyi/pc/PcLegacyIssues.vue +309 -309
- package/src/filiale/gongyi/pc/SupervisoryServiceControl.vue +894 -894
- package/src/filiale/gongyi/pc/SupervisoryServiceView.vue +1005 -1005
- package/src/filiale/gongyi/pc/addMaterialScience.vue +575 -575
- package/src/filiale/gongyi/pc/chargeManagement.vue +765 -765
- package/src/filiale/gongyi/pc/supplementalAgreement.vue +277 -277
- package/src/filiale/gongyi/pc.js +24 -24
- package/src/filiale/hongda/pc/SupervisoryList.vue +422 -422
- package/src/filiale/jingyang/pc/SupervisoryList.vue +459 -459
- package/src/filiale/jinhuang/android/AppAddMaterialScience.vue +635 -0
- package/src/filiale/jinhuang/android.js +6 -0
- package/src/filiale/jinhuang/pc/ContractList.vue +220 -0
- package/src/filiale/jinhuang/pc/ExplorationSelect.vue +497 -0
- package/src/filiale/jinhuang/pc/ServiceControl.vue +7 -0
- package/src/filiale/jinhuang/pc/addMaterialScience.vue +638 -0
- package/src/filiale/jinhuang/pc/addressAndUserinfoManagement.vue +41 -1
- package/src/filiale/jinhuang/pc.js +3 -0
- package/src/filiale/qianneng/android/AppServiceView.vue +13 -13
- package/src/filiale/qianneng/pc/ApplyMaterialDetailed.vue +1 -1
- package/src/filiale/qianneng/pc/Applydetail.vue +1 -1
- package/src/filiale/qianneng/pc/FunctionServiceControl.vue +10 -3
- package/src/filiale/qianneng/pc/ServiceControl.vue +8 -3
- package/src/filiale/ruihua/pc/ServiceControl.vue +2 -1
- package/src/filiale/yangchunboneng/android/AppChargeManagement.vue +527 -520
- package/src/filiale/yangchunboneng/android/AppExplorationUser.vue +72 -5
- package/src/filiale/yangchunboneng/android/AppInstallationMaterial.vue +30 -1
- package/src/filiale/yangchunboneng/android/AppProcessSupervisory.vue +331 -0
- package/src/filiale/yangchunboneng/android/AppServiceControl.vue +217 -43
- package/src/filiale/yangchunboneng/android/MaterIialOne.vue +21 -1
- package/src/filiale/yangchunboneng/android.js +21 -20
- package/src/filiale/yangchunboneng/pc/ApplyChargeList.vue +32 -4
- package/src/filiale/yangchunboneng/pc/ExplorationSelect.vue +612 -547
- package/src/filiale/yangchunboneng/pc/ServiceControl.vue +2 -2
- package/src/filiale/yangchunboneng/pc/StopApplyList.vue +294 -0
- package/src/filiale/yangchunboneng/pc/SupervisoryList.vue +54 -42
- package/src/filiale/yangchunboneng/pc/SupervisoryListNew.vue +5 -1
- package/src/filiale/yangchunboneng/pc/SupervisoryServiceView.vue +1 -1
- package/src/filiale/yangchunboneng/pc/buildOrderList.vue +337 -0
- package/src/filiale/yangchunboneng/pc/chargeManagement.vue +5 -1
- package/src/filiale/yangchunboneng/pc/constructionInfo.vue +84 -0
- package/src/filiale/yangchunboneng/pc/printBuildOrder.vue +175 -0
- package/src/filiale/yangchunboneng/pc.js +5 -1
- package/src/main.js +23 -23
- package/~/chatbot/main.py +0 -57
package/~/chatbot/main.py
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import speech_recognition as sr
|
|
2
|
-
import pyttsx3
|
|
3
|
-
import requests
|
|
4
|
-
import json
|
|
5
|
-
import threading
|
|
6
|
-
|
|
7
|
-
# 初始化语音识别和合成
|
|
8
|
-
recognizer = sr.Recognizer()
|
|
9
|
-
engine = pyttsx3.init()
|
|
10
|
-
|
|
11
|
-
# AI API配置
|
|
12
|
-
API_URL = "https://api.openai.com/v1/chat/completions" # 或其他API
|
|
13
|
-
API_KEY = "your_api_key_here"
|
|
14
|
-
|
|
15
|
-
def listen_for_command():
|
|
16
|
-
with sr.Microphone() as source:
|
|
17
|
-
print("等待指令...")
|
|
18
|
-
recognizer.adjust_for_ambient_noise(source)
|
|
19
|
-
audio = recognizer.listen(source)
|
|
20
|
-
|
|
21
|
-
try:
|
|
22
|
-
text = recognizer.recognize_google(audio, language="zh-CN")
|
|
23
|
-
print(f"识别到: {text}")
|
|
24
|
-
return text
|
|
25
|
-
except:
|
|
26
|
-
print("无法识别语音")
|
|
27
|
-
return None
|
|
28
|
-
|
|
29
|
-
def get_ai_response(prompt):
|
|
30
|
-
headers = {
|
|
31
|
-
"Authorization": f"Bearer {API_KEY}",
|
|
32
|
-
"Content-Type": "application/json"
|
|
33
|
-
}
|
|
34
|
-
data = {
|
|
35
|
-
"model": "gpt-3.5-turbo",
|
|
36
|
-
"messages": [{"role": "user", "content": prompt}]
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
response = requests.post(API_URL, headers=headers, data=json.dumps(data))
|
|
40
|
-
if response.status_code == 200:
|
|
41
|
-
return response.json()["choices"][0]["message"]["content"]
|
|
42
|
-
else:
|
|
43
|
-
return "抱歉,我遇到了问题,无法回答。"
|
|
44
|
-
|
|
45
|
-
def speak(text):
|
|
46
|
-
engine.say(text)
|
|
47
|
-
engine.runAndWait()
|
|
48
|
-
|
|
49
|
-
def main():
|
|
50
|
-
while True:
|
|
51
|
-
command = listen_for_command()
|
|
52
|
-
if command and "小智" in command: # 简单的唤醒词检测
|
|
53
|
-
response = get_ai_response(command)
|
|
54
|
-
speak(response)
|
|
55
|
-
|
|
56
|
-
if __name__ == "__main__":
|
|
57
|
-
main()
|