Add SmsServiceLookupOnlyTest AST and migration for template_code in sms_logs

- Created a new AST JSON file for SmsServiceLookupOnlyTest.php, detailing nodes, edges, and raw calls for better code analysis.
- Added a new migration (Version20260707202553) to alter the sms_logs table by adding a nullable template_code column.
This commit is contained in:
hamed
2026-07-08 00:03:33 +03:30
parent 2982eaa7e3
commit a2c809b7de
21 changed files with 1092 additions and 840 deletions
+2
View File
@@ -851,6 +851,7 @@ List SMS send logs.
"status": "sent",
"provider": "kavenegar",
"tag": "otp",
"template": "clinicpro-otp",
"sent_at": "2026-06-19T...",
"created_at": "2026-06-19T..."
}
@@ -859,6 +860,7 @@ List SMS send logs.
}
```
> `tag` نوع پیامک را مشخص می‌کند؛ پیش‌فرض پیامک‌های سیستمیِ بی‌برچسب `global` است.
> `template` نام الگوی VerifyLookup کاوه‌نگار است که پیامک با آن ارسال شده (مثلاً `clinicpro-otp`)؛ `null` اگر ارسال نشده باشد (مثلاً رد به‌دلیل نبود الگو در سیاست lookup-only).
---
+2
View File
@@ -8,6 +8,8 @@
> (`verify/lookup.json`) ارسال می‌شوند. ارسال متن آزاد با `sms/send.json` **غیرفعال** است
> (در ایران برای پیام خدماتی فیلتر می‌شود). هر پیامی که الگو/کد VerifyLookup نداشته باشد
> ارسال **نمی‌شود**؛ در `SmsLog` با `success=false` ثبت و در لاگ برنامه خطا می‌خورد.
> هر رکورد `SmsLog` نام الگوی کاوه‌نگارِ استفاده‌شده را در فیلد `template_code` نگه می‌دارد
> (در پاسخ `GET /api/v1/admin/sms/logs` با کلید `template`)؛ برای پیامک‌های ردشده `null` است.
## Configuration