fix some bugs from zarin

This commit is contained in:
2026-07-28 14:15:51 +03:30
parent 074b48de95
commit edb664b1db
2 changed files with 17 additions and 11 deletions
@@ -1502,7 +1502,9 @@ class ZarinController extends Controller
if (!empty($idHesab)) {
$customer->moshtari_code = $idHesab;
$customer->save();
return $idHesab;
// int برگردان تا با پیام خطای string اشتباه نشود
return is_numeric($idHesab) ? (0 + $idHesab) : $idHesab;
}
$detail = $data['msg'] ?? $data['message'] ?? $data['detail'] ?? null;