fix some bugs from zarin
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user