增加余额查询
This commit is contained in:
parent
0b765fc968
commit
cf68049323
|
@ -13,7 +13,7 @@ class IndexController
|
|||
|
||||
public function index(Request $request)
|
||||
{
|
||||
var_dump(PaymentNew::shopGetBalance());
|
||||
|
||||
return response()->file(public_path() . '/index.html');
|
||||
}
|
||||
|
||||
|
|
|
@ -10,6 +10,7 @@ use app\model\User;
|
|||
use app\model\UserPhone;
|
||||
use hg\apidoc\annotation as Apidoc;
|
||||
use app\model\Withdraw;
|
||||
use App\Utils\API\PaymentNew;
|
||||
|
||||
/**
|
||||
* @Apidoc\Title("首页展示数据")
|
||||
|
@ -69,4 +70,15 @@ class DashboardController
|
|||
$res['withdraw']=$withdraw;
|
||||
return ApiResponse::success(200, $res);
|
||||
}
|
||||
/**
|
||||
* @Apidoc\Title("1.0 查询第三方支付余额")
|
||||
* @Apidoc\Url("admin/api/v1/Dashboard/shopGetBalance")
|
||||
* @Apidoc\Method("POST")
|
||||
*/
|
||||
public function shopGetBalance(Request $request)
|
||||
{
|
||||
$res = [];
|
||||
$res['AmountAvailable']=PaymentNew::shopGetBalance();
|
||||
return ApiResponse::success(200, $res);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue