http 原后台数据
This commit is contained in:
@@ -105,4 +105,25 @@ class Admin extends Controller
|
||||
];
|
||||
echo json_encode($data);
|
||||
}
|
||||
|
||||
// 获取原后台支付数据
|
||||
public function get_payments() {
|
||||
$get_data = json_decode(file_get_contents("php://input"), true);
|
||||
|
||||
$request_data = [
|
||||
"page" => $get_data['PageIndex'], //必填,当前页数
|
||||
"limit" => 50 //必填,每页显示条数,建议10~20,不可超过100
|
||||
];
|
||||
|
||||
|
||||
$request_data = formatHttpRequert($request_data);
|
||||
|
||||
$url = 'https://merchant.sgxz.cn/plan/long/assignable/line/count';
|
||||
$data = (linkcurl($url,'GET',$request_data,[],0));
|
||||
|
||||
$admin_url = "https://merchant.sgxz.cn/admin/get/coin";
|
||||
$data['money'] = json_decode((linkcurl($admin_url,'GET',[],[],0)))->d->coin;
|
||||
|
||||
echo json_encode($data);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user