You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
honor-dd-light-ds-java/doc/move/const/class.StatusConst.php

92 lines
2.6 KiB
PHP

<?php
class StatusConst {
const normal = 'normal';
const pause = 'pause';
const cancel = 'cancel';
const recycle = 'recycle';
const deny = 'deny';
const none = 'none';
const delete = 'delete';
const skip = 'skip';
const finish = 'finish';
const wait = 'wait';
const waitRetry = 'wait_retry';
const waitRetryFixup = 'wait_retry_fixup';
const waitFixup = 'wait_fixup';
const waitRevert = 'wait_revert';
const waitPlan = 'wait_plan';
const waitAudit = 'wait_audit';
const processing = 'processing';
const processingRevert = 'processing_revert';
const processChildTask = 'process_child_task';
const processCompareImage = 'process_compare_image';
const process = 'process';
const reject = 'reject';
const manualAudit = 'manual_audit';
const auditPass = 'audit_pass';
const agree = 'agree';
const success = 'success';
const updateSuccess = 'update_success';
const revertSuccess = 'revert_success';
const processingDelete = 'processing_delete';
const fail = 'fail';
const updateFail = 'update_fail';
const revertFail = 'revert_fail';
const processingCancel = 'processing_cancel';
const processingUpdate = 'processing_update';
const processingCheckEnd = 'processing_check_end';
const partSuccess = 'part_success';
const partProcessing = 'part_processing';
const waitProcessing = 'wait_processing';
const switchOn = 'on';
const switchOff = 'off';
const waitDwsData = 'wait_dws_data';
const processParse = 'process_parse';
const processJudgment = 'process_judgment';
const processCollectData = 'process_collect_data';
const waitPlugin = 'waitPlugin';
const payWait = 'pay_wait';
const paySuccess = 'pay_success';
const payFail = 'pay_fail';
const payManualCheck = 'pay_manual_check';
const payManualRefund = 'pay_manual_refund';
const settingStatusAll = 'all';
const settingStatusHasSet = 'has_set';
const settingStatusNotSet = 'not_set';
const delay = 'delay';
const manual = 'manual';
public static function getStatusNameByStatusCode($code) {
$codeMap = [
self::finish => '完成',
self::success => '成功',
self::fail => '失败',
self::cancel => '已取消',
self::wait => '等待',
self::processing => '处理中',
self::waitRevert => '等待恢复',
self::processingRevert => '恢复处理中',
self::revertSuccess => '已恢复',
self::revertFail => '恢复失败',
];
return $codeMap[$code] ? $codeMap[$code] : '';
}
const productImgProcessTypeNormal = 'normal';
const productImgProcessTypeRevert = 'revert';
}