sharh added
This commit is contained in:
@@ -221,7 +221,8 @@ class CustomerController extends SuperController
|
|||||||
$tahesab->walletGold([
|
$tahesab->walletGold([
|
||||||
'customer_id'=> $customer->id,
|
'customer_id'=> $customer->id,
|
||||||
'value'=> $gift_for_inviter,
|
'value'=> $gift_for_inviter,
|
||||||
'direction'=> 0
|
'direction'=> 0,
|
||||||
|
'desc' => 'پاداش بابت معرفی'
|
||||||
]);
|
]);
|
||||||
}catch (\Exception $e){
|
}catch (\Exception $e){
|
||||||
return response($e->getMessage(), 500);
|
return response($e->getMessage(), 500);
|
||||||
@@ -270,7 +271,8 @@ class CustomerController extends SuperController
|
|||||||
$tahesab->walletGold([
|
$tahesab->walletGold([
|
||||||
'customer_id'=> $customer->id,
|
'customer_id'=> $customer->id,
|
||||||
'value'=> $gift_for_inviter,
|
'value'=> $gift_for_inviter,
|
||||||
'direction'=> 0
|
'direction'=> 0,
|
||||||
|
'desc' => 'پاداش بابت ثبت نام'
|
||||||
]);
|
]);
|
||||||
}catch (\Exception $e){
|
}catch (\Exception $e){
|
||||||
return response($e->getMessage(), 500);
|
return response($e->getMessage(), 500);
|
||||||
|
|||||||
@@ -342,7 +342,9 @@ class TahesabController extends Controller
|
|||||||
1, //MazanehIsMesghalOrGeram_0_1
|
1, //MazanehIsMesghalOrGeram_0_1
|
||||||
1, //IsMotefaregheOrAbshode_0_1
|
1, //IsMotefaregheOrAbshode_0_1
|
||||||
$data['direction'] == 0 ? (int)$prices['buy'] * $amount : (int)$prices['sell'] * $amount, //MablaghKol
|
$data['direction'] == 0 ? (int)$prices['buy'] * $amount : (int)$prices['sell'] * $amount, //MablaghKol
|
||||||
$data['direction'] == 0 ? "خرید آبشده" : "فروش آبشده",//Sharh
|
!empty($data['desc'])
|
||||||
|
? $data['desc']
|
||||||
|
: (($data['direction'] ?? null) == 0 ? "خرید آبشده" : "فروش آبشده"),//Sharh
|
||||||
"Code_Factor",
|
"Code_Factor",
|
||||||
"", //HavalehBe_Mcode
|
"", //HavalehBe_Mcode
|
||||||
"", //MultiRadif
|
"", //MultiRadif
|
||||||
|
|||||||
@@ -241,7 +241,8 @@ class CustomerController extends Controller
|
|||||||
$tahesab->walletGold([
|
$tahesab->walletGold([
|
||||||
'customer_id'=> $customer->id,
|
'customer_id'=> $customer->id,
|
||||||
'value'=> $gift_for_inviter,
|
'value'=> $gift_for_inviter,
|
||||||
'direction'=> 0
|
'direction'=> 0,
|
||||||
|
'desc' => 'پاداش بابت معرفی'
|
||||||
]);
|
]);
|
||||||
}catch (\Exception $e){
|
}catch (\Exception $e){
|
||||||
return response($e->getMessage(), 500);
|
return response($e->getMessage(), 500);
|
||||||
@@ -290,7 +291,8 @@ class CustomerController extends Controller
|
|||||||
$tahesab->walletGold([
|
$tahesab->walletGold([
|
||||||
'customer_id'=> $customer->id,
|
'customer_id'=> $customer->id,
|
||||||
'value'=> $gift_for_inviter,
|
'value'=> $gift_for_inviter,
|
||||||
'direction'=> 0
|
'direction'=> 0,
|
||||||
|
'desc' => 'پاداش بابت ثبت نام'
|
||||||
]);
|
]);
|
||||||
}catch (\Exception $e){
|
}catch (\Exception $e){
|
||||||
return response($e->getMessage(), 500);
|
return response($e->getMessage(), 500);
|
||||||
|
|||||||
Reference in New Issue
Block a user