Commit 1a18dd8b by Tobin

dc

parent 1db07b04
......@@ -394,10 +394,7 @@ class Api extends CI_Controller {
if($noCard == 0){
$pText .= '11111100000|'.$cardNo.'|'.$expMonth.'|'.$expYear.'|'.$cvv.'|'.$holder.'|'.$cardType.'||';
} else {
// No Card Payment Method Logic.
// $holder = 'Basanta Mahunta'; $cardType = 'MasterCard'; $cardNo = '5111111111111118';
// $cvv = '100'; $expMonth = '06'; $expYear = '2022';
// Provide Card Details Manually in Bayanpay Payment gateway.
}
}
$pText .= '1110000|'.$last_id.'|'.$event_id.'|'.$booking_id.'||';
......
......@@ -1892,9 +1892,9 @@ class Webservice_model extends CI_Model {
continue;
}
$fromUsrId = '';
if($value['to_user']==$user_id){
if($value['to_user'] == $user_id) {
$fromUsrId = $value['from_user'];
} else if ($value['from_user'] == $user_id){
} else if ($value['from_user'] == $user_id) {
$fromUsrId = $value['to_user'];
} else {
continue;
......@@ -1902,7 +1902,7 @@ class Webservice_model extends CI_Model {
$sql = "SELECT CUST.name,CUST.phone,CUST.profile_image,CUST.profile_image_qr,
CUST.customer_id,CUST.fcm_token
FROM customer AS CUST
WHERE CUST.customer_id='$fromUsrId'";
WHERE CUST.customer_id='$fromUsrId' GROUP BY CUST.customer_id";
$cust = $this->db->query($sql);
if(!empty($cust) && !empty($cust = $cust->row_array())){
$custData[] = $cust;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment