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:
@@ -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).
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user