用的wsl测试,逐行输入运行的时候是正常的,提示信息为这个:
[Shell] 纯文本查看 复制代码 curl -k --data-ascii "$content" $PURL
{"errcode":41001,"errmsg":"access_token missing, hint: [1676350296372881401161879], from ip: 127.0.0.1, more info at [url=https://open.work.weixin.qq.com/devtool/query?e=41001]https://open.work.weixin.qq.com/devtool/query?e=41001[/url]"}
将你的脚本输入test.sh运行结果和上面的提示一样
[Shell] 纯文本查看 复制代码 kbtx@PC:~$ vim test.sh
kbtx@PC:~$ sh test.sh
{"errcode":41001,"errmsg":"access_token missing, hint: [1676350388480130725772474], from ip: 127.0.0.1, more info at [url=https://open.work.weixin.qq.com/devtool/query?e=41001]https://open.work.weixin.qq.com/devtool/query?e=41001[/url]"} |