NASER fix sms text for charge wallet and product pricing
This commit is contained in:
@@ -116,7 +116,7 @@ class ProductController extends SuperController
|
|||||||
|
|
||||||
public function listProduct()
|
public function listProduct()
|
||||||
{
|
{
|
||||||
// $this->getPrice();
|
$this->getPrice();
|
||||||
$this->auto_close_open();
|
$this->auto_close_open();
|
||||||
$product = Product::with([])->where('active', 1)->get();
|
$product = Product::with([])->where('active', 1)->get();
|
||||||
return response()->json($product);
|
return response()->json($product);
|
||||||
|
|||||||
@@ -120,10 +120,10 @@ class WalletController extends Controller
|
|||||||
$data['direction'] = 0;
|
$data['direction'] = 0;
|
||||||
// $tahesab = new TahesabController();
|
// $tahesab = new TahesabController();
|
||||||
// $tahesab->wallet($data);
|
// $tahesab->wallet($data);
|
||||||
|
$status = $data['value'] > 0 ?" شارژ شد ": " کسر شد ";
|
||||||
$message = 'کیف پول شما به اندازه ' . number_format($data['value']) . " ریال در تاریخ " . verta()->format('Y/n/j H:i:s') . " اصلاح شد بابت" . "\n"
|
$message = 'کیف پول شما به اندازه ' . number_format(abs($data['value'])) . " ریال در تاریخ " . verta()->format('Y/n/j H:i:s') .$status . "بابت" . "\n"
|
||||||
. $data['note']
|
. $data['note']
|
||||||
. " "
|
. "\n"
|
||||||
. $this->Config('name_fa');
|
. $this->Config('name_fa');
|
||||||
$this->Send($customer->mobile, $message);
|
$this->Send($customer->mobile, $message);
|
||||||
return response()->json(true);
|
return response()->json(true);
|
||||||
|
|||||||
Reference in New Issue
Block a user