修改代理商接口
This commit is contained in:
@@ -84,16 +84,18 @@ class Account
|
|||||||
$data = $_GET;
|
$data = $_GET;
|
||||||
$url = 'https://juip.com/product/ApiCreateOrder';
|
$url = 'https://juip.com/product/ApiCreateOrder';
|
||||||
|
|
||||||
if ($data['type'] == 3) {
|
|
||||||
if ((strpos($data['account'], ',') !== false || strpos($data['account'], '、') !== false || strpos($data['account'], ',') !== false)) {
|
if ((strpos($data['account'], ',') !== false || strpos($data['account'], '、') !== false || strpos($data['account'], ',') !== false)) {
|
||||||
$data = [
|
$data = [
|
||||||
'Code' => 0,
|
'Code' => 0,
|
||||||
'Message' => '请续费单个账户',
|
'Message' => '请操作单个账户',
|
||||||
];
|
];
|
||||||
echo json_encode($data);
|
echo json_encode($data);
|
||||||
die;
|
die;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($data['type'] == 3) {
|
||||||
|
|
||||||
$account_model = new ProductAccount;
|
$account_model = new ProductAccount;
|
||||||
$info = $account_model->getOne(['Account'=>$data['account'],"PackageId" => $data['package']],'ProductName,PackageName,Account,ConnectCount,StartTime,EndTime');
|
$info = $account_model->getOne(['Account'=>$data['account'],"PackageId" => $data['package']],'ProductName,PackageName,Account,ConnectCount,StartTime,EndTime');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user