@freelog/tools-lib 0.1.186 → 0.1.189

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3381,13 +3381,51 @@ function queryFinancialAccountInfo(params, config) {
3381
3381
  params: params
3382
3382
  }, config));
3383
3383
  }
3384
+ function queryBindWithdrawCard(_ref2, config) {
3385
+ var accountId = _ref2.accountId;
3386
+ return FUtil.Request(_extends({
3387
+ method: 'GET',
3388
+ url: "/v3/transactions/accounts/" + accountId + "/cashCard"
3389
+ }, config));
3390
+ }
3391
+ function withdrawCash(params, config) {
3392
+ return FUtil.Request(_extends({
3393
+ method: 'POST',
3394
+ url: "/v3/transactions/withdrawCash",
3395
+ data: params
3396
+ }, config));
3397
+ }
3398
+ function queryWithdrawCashList(params, config) {
3399
+ return FUtil.Request(_extends({
3400
+ method: 'GET',
3401
+ url: "/v3/transactions/withdrawCash/list",
3402
+ params: params
3403
+ }, config));
3404
+ }
3405
+ // 交易记录分页列表查询
3406
+ // interface QueryTransactionListParamsType {
3407
+ // skip?: number;
3408
+ // limit?: number;
3409
+ // accountId: string;
3410
+ // }
3411
+ // export function queryTransactionList(params: QueryTransactionListParamsType, config?: AxiosRequestConfig) {
3412
+ // return FUtil.Request({
3413
+ // method: 'GET',
3414
+ // url: `/v3/transactions/transaction/list`,
3415
+ // params: params,
3416
+ // ...config,
3417
+ // });
3418
+ // }
3384
3419
 
3385
3420
  var Payment = {
3386
3421
  __proto__: null,
3387
3422
  uploadIDCard: uploadIDCard,
3388
3423
  openFinancialAccount: openFinancialAccount,
3389
3424
  bindWithdrawCard: bindWithdrawCard,
3390
- queryFinancialAccountInfo: queryFinancialAccountInfo
3425
+ queryFinancialAccountInfo: queryFinancialAccountInfo,
3426
+ queryBindWithdrawCard: queryBindWithdrawCard,
3427
+ withdrawCash: withdrawCash,
3428
+ queryWithdrawCashList: queryWithdrawCashList
3391
3429
  };
3392
3430
 
3393
3431
  var FServiceAPI = {
@@ -3478,7 +3516,7 @@ axios.interceptors.response.use(function (response) {
3478
3516
  // Do something with response data
3479
3517
  // console.log(response, 'response!!!!!!');
3480
3518
  // NProgress.done();
3481
- if (response.status !== 200) {
3519
+ if (response.status !== 200 && response.status !== 201) {
3482
3520
  var error = {
3483
3521
  description: codeMessage[response.status],
3484
3522
  message: response.status