硕顺crm后台
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
628 B

<?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) {
}