本文整理汇总了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;