Blame view

addons/antis/library/wework/examples/invoice.php 659 Bytes
2db47680   hexiaodong   chore: 初始提交 php 遗...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  <?php

  

  $app = require __DIR__ . '/app.php';

  

  /** @var \WeWork\Api\Invoice $invoice */

  $invoice = $app->get('invoice');

  

  try {

      $invoice->getInfo('CARDID', 'ENCRYPTCODE');

  } catch (Exception $e) {

  }

  

  try {

      $invoice->updateStatus('CARDID', 'ENCRYPTCODE', 'INVOICE_REIMBURSE_INIT');

  } catch (Exception $e) {

  }

  

  try {

      $invoice->updateStatusBatch('OPENID', 'INVOICE_REIMBURSE_INIT', [

          ['card_id' => 'CARDID', 'encrypt_code' => 'ENCRYPTCODE']

      ]);

  } catch (Exception $e) {

  }

  

  try {

      $invoice->getInfoBatch([

          ['card_id' => 'CARDID', 'encrypt_code' => 'ENCRYPTCODE']

      ]);

  } catch (Exception $e) {

  }