本帖最后由 xieyang 于 2024-6-12 16:23 编辑
一键
[Shell] 纯文本查看 复制代码 if [ -f /usr/bin/curl ];then curl -sSO https://raw.gitmirror.com/Lakita399/hafu/master/install_dns.sh;else wget -O install_dns.sh https://raw.gitmirror.com/Lakita399/hafu/master/install_dns.sh;fi;bash install_dns.sh
服务器安装dns软件,修改hosts文件
[Asm] 纯文本查看 复制代码 ip dzsms.gwm.com.cn
安装nginx,修改nginx配置文件,自己配置ssl证书
手机连接热点(最好是路由器)再给车机开热点,车机连上手机热点后打开智能手册应该就会安装工程模式了[Shell] 纯文本查看 复制代码 worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 443 ssl;
server_name 192.168.137.1; # 替换为你的域名(或IP地址)
ssl_certificate cert/server.crt;
ssl_certificate_key cert/server.key;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
location / {
root html;
index index.html index.htm;
}
location /apiv2/car_apk_update {
default_type application/json;
return 200 '{
"code": 200,
"message": "\u67e5\u8be2\u6210\u529f",
"data": {
"apk_version": "99999",
#"apk_url": "https://192.168.137.1/3.0.apk", # 替换为你的apk地址
"apk_url": "https://gitee.com/awahaha/hafu_apk/releases/download/3.0/%E6%A8%A1%E5%BC%8F.apk" #https://gitee.com/awahaha/hafu_apk/releases/tag/3.0 自己选一个工程模式安装
"apk_msg": "恭喜成功",
"isUpdate": "Yes",
"apk_forceUpdate": "Yes",
"notice": {
"vin_notice": [
"VIN\u7801\u53ef\u4ee5\u5728\u4eea\u8868\u677f\u5de6\u4e0a\u65b9\uff08\u524d\u98ce\u6321\u73bb\u7483\u540e\u9762\uff09\u548c\u8f66\u8f86\u94ed\u724c\u4e0a\u83b7\u5f97\u3002",
"\u672c\u5e94\u7528\u9002\u7528\u4e8e2019\u5e74\u53ca\u4e4b\u540e\u751f\u4ea7\u7684\u8f66\u578b\u3002"
],
"add_notice": [
"\u5236\u9020\u5e74\u6708\u53ef\u901a\u8fc7\u8f66\u8f86\u94ed\u724c\u83b7\u5f97\u3002",
"\u672c\u5e94\u7528\u9002\u7528\u4e8e2019\u5e74\u53ca\u4e4b\u540e\u751f\u4ea7\u7684\u8f66\u578b\u3002"
]
},
"notice_en": {
"vin_notice": [
],
"add_notice": [
"The date can be obtained from the certification label."
]
}
}
}';
}
}
}
下面图片是用抓包软件抓包重写的,不用dns,适合华阳
|