本文整理匯總了PHP中client::Get_Clients_Details方法的典型用法代碼示例。如果您正苦於以下問題:PHP client::Get_Clients_Details方法的具體用法?PHP client::Get_Clients_Details怎麽用?PHP client::Get_Clients_Details使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類client
的用法示例。
在下文中一共展示了client::Get_Clients_Details方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: explode
<?php
$request_uri = $_SERVER['REQUEST_URI'];
$route = explode('/', $request_uri);
$countRoute = count($route);
if (!empty($route['4'])) {
$client = new client();
$client_id = $route['4'];
$result = $client->Get_Clients_Details($client_id);
print_r($result);
} else {
$result['result'] = 0;
echo json_encode($result);
}
示例2: custom
<?php
if ($_POST) {
$cardid = $_POST['cardid'];
$invoiceid = $_POST['invoiceid'];
$nominal = $_POST['nominal'];
$custom = new custom();
$cekCardId = $custom->cekCardId($cardid);
if ($cekCardId != 0) {
$clientid = $custom->byCardId($cardid);
$client = new client();
$details = json_decode($client->Get_Clients_Details($clientid));
$credit = explode('.', $details->client->credit);
$credit = $credit['0'];
if ($credit < $nominal) {
$result['result'] = 0;
$result['message'] = "Your Balance is not enought";
echo json_encode($result);
} else {
$payments = new payments();
$custom->updateInvoiceUserId($clientid, $invoiceid);
$token['client_id'] = $clientid;
$token['invoiceid'] = $invoiceid;
$rtoken = $custom->rToken($token);
if ($rtoken != 0) {
$result['result'] = 1;
$result['invoiceid'] = $invoiceid;
$result['amount'] = $nominal;
echo json_encode($result);
} else {
$result['result'] = 0;