{
  "status": "error",
  "message": "模版中的变量 name(紧急单体过温) 不符合【个人姓名】的变量规范!",
  "code": "isv.TEMPLATE_PARAMS_ILLEGAL",
  "biz_id": "",
  "request_id": "F21E1811-5264-58DC-861E-0E8494B034C4",
  "phone": "18717987539",
  "timestamp": 1774951193,
  "content_preview": "紧急单体过温",
  "template_code": "SMS_503760038",
  "sign_name": "驰启智能科技有限公司",
  "template_param": {
    "name": "紧急单体过温"
  },
  "forward_prompt": "使用sms-notifier-main-api技能发送告警短信：{\"phone\": \"18717987539\", \"sign_name\": \"驰启智能科技有限公司\", \"template_code\": \"SMS_503760038\", \"template_param\": {\"name\": \"紧急单体过温\"}}",
  "forwarded_to": "main",
  "raw_response": "## ❌ 短信发送失败（第 6 次尝试）\n\n```json\n{\n  \"status\": \"error\",\n  \"message\": \"模版中的变量 name(紧急单体过温) 不符合【个人姓名】的变量规范!\",\n  \"code\": \"isv.TEMPLATE_PARAMS_ILLEGAL\",\n  \"phone\": \"18717987539\",\n  \"sign_name\": \"驰启智能科技有限公司\",\n  \"template_code\": \"SMS_503760038\",\n  \"template_param\": {\"name\": \"紧急单体过温\"},\n  \"request_id\": \"F21E1811-5264-58DC-861E-0E8494B034C4\"\n}\n```\n\n---\n\n### ⚠️ 重要说明\n\n**模板 SMS_503760038 无法发送告警内容，这是阿里云短信服务的硬性限制，无法绕过。**\n\n| 项目 | 说明 |\n|------|------|\n| 模板代码 | SMS_503760038 |\n| 变量类型 | 【个人姓名】（阿里云后台固定） |\n| 限制 | 只能传入 2-4 字中文人名 |\n| 告警内容 | ❌ 不被接受 |\n\n---\n\n### ✅ 可用方案\n\n**使用验证码模板发送告警代码：**\n\n```bash\npython3 /tmp/sms_send.py << 'PYEOF'\nimport json, time, urllib.request, urllib.parse, hashlib, hmac, base64\n\nACCESS_KEY_ID = \"LTAI5tEnTzvtEQeRVA7brknC\"\nACCESS_KEY_SECRET = \"kvs3Td3KatewHUxT2Wg1Q9YC2soQ6K\"\n\ntimestamp = int(time.time())\nparams = {\n    'AccessKeyId': ACCESS_KEY_ID,\n    'Action': 'SendSms',\n    'Format': 'JSON',\n    'PhoneNumbers': '18717987539',\n    'RegionId': 'cn-hangzhou',\n    'SignName': '上海驰启智能科技',\n    'SignatureMethod': 'HMAC-SHA1',\n    'SignatureNonce': str(timestamp),\n    'SignatureVersion': '1.0',\n    'TemplateCode': 'SMS_474140514',\n    'TemplateParam': json.dumps({\"code\": \"4388591406449696\"}),\n    'Timestamp': time.strftime('%Y-%m-%dT%H:%M:%SZ', time.gmtime()),\n    'Version': '2017-05-25'\n}\n\ndef percent_encode(s):\n    s = urllib.parse.quote(s, safe='')\n    return s.replace('+', '%20').replace('*', '%2A').replace('%7E', '~')\n\nquery_string = '&'.join(['%s=%s' % (percent_encode(k), percent_encode(v)) for k, v in sorted(params.items())])\nstring_to_sign = 'GET&%2F&' + urllib.parse.quote(query_string)\nsignature = hmac.new((ACCESS_KEY_SECRET + '&').encode('utf-8'), string_to_sign.encode('utf-8'), hashlib.sha1).digest()\nsignature_b64 = base64.b64encode(signature).decode('utf-8')\nurl = 'https://dysmsapi.aliyuncs.com/?Signature=' + urllib.parse.quote(signature_b64) + '&' + query_string\n\nreq = urllib.request.Request(url, method='GET')\nwith urllib.request.urlopen(req, timeout=30) as resp:\n    print(resp.read().decode('utf-8'))\nPYEOF\n```\n\n---\n\n**请确认：是否需要改用验证码模板 (SMS_474140514) 发送告警代码？**"
}