__statusNotifyRead) { try{ if(defined('TMC_REFUND_READ_MODE')) { if(TMC_REFUND_READ_MODE == 'redis') { $this->__statusNotifyRead = kernel::single('ome_order_refund_status_redis'); } elseif (TMC_REFUND_READ_MODE == 'mysql') { $this->__statusNotifyRead = kernel::single('ome_order_refund_status_mysql'); } } if(empty($this->__statusNotifyRead)) { $this->__statusNotifyRead = kernel::single('ome_order_refund_status_api'); } } catch(Exception $e) { return [false, ['msg'=>$e->getMessage()]]; } } return $this->__statusNotifyRead->fetch($tid, $nodeId, $shopId); } /** * store * @param mixed $sdf sdf * @return mixed 返回值 */ public function store($sdf){ if(!$this->__statusNotifyWrite) { try{ if(defined('TMC_REFUND_WRITE_MODE')) { if(TMC_REFUND_WRITE_MODE == 'redis') { $this->__statusNotifyWrite = kernel::single('ome_order_refund_status_redis'); } elseif (TMC_REFUND_WRITE_MODE == 'mysql') { $this->__statusNotifyWrite = kernel::single('ome_order_refund_status_mysql'); } } if(empty($this->__statusNotifyWrite)) { $this->__statusNotifyWrite = kernel::single('ome_order_refund_status_api'); } } catch(Exception $e) { return [false, ['msg'=>$e->getMessage()]]; } } return $this->__statusNotifyWrite->store($sdf); } }