+ Update countries list fields

This commit is contained in:
Djery-Tom 2020-06-23 09:29:48 +01:00
parent fa17741c6c
commit 2ecf785ca3
2 changed files with 10 additions and 4 deletions

View File

@ -21,7 +21,7 @@ class HelperController extends Controller
public function countries()
{
$countries = DB::select('SELECT id , name , code_dial FROM countries_currencies WHERE id IN (
$countries = DB::select('SELECT id , name , code_dial , code_country FROM countries_currencies WHERE id IN (
SELECT distinct c.id FROM networks n INNER JOIN countries_currencies c ON n.country_id=c.id INNER JOIN configWallet cw ON cw.id_network = n.id WHERE status = 1
);');
return $this->successResponse($countries);
@ -31,6 +31,10 @@ class HelperController extends Controller
{
$networks = DB::select('SELECT n.id , n.name , c.type FROM networks n INNER JOIN configWallet c ON c.id_network = n.id WHERE n.id IN ( SELECT distinct id_network FROM paying_networks )
AND status = 1 AND country_id = :id;',['id'=>$id_country]);
foreach ($networks as$network){
if($network->type == 'ilink')
$network->type = 'ilink-world';
}
return $this->successResponse($networks);
}

View File

@ -49,9 +49,11 @@ Transaction information:
Transaction information:
- Transaction ID : :id_transaction
- Amount of the transaction : :amount
- Country of departure: :init_country
- Net amount of the country of departure : :net_init
- Country of destination: :final_country
- Net amount of the destination country : :net_final
- Fees : :fees
- Tax : :tax
- Recipient wallet code : :code',
- Fees + Tax : :fees
- Number of the sending wallet: :sender_code
- Number of the recipient wallet: :receiver_code',
];