in_action){ $action = $this->in_action; $this->$action(); } } public function executeErpInventory2Goods() { try { if(cache_lock(__METHOD__ . $this->id, 30)){ return; } ErpInventory::num2Goods($this->id); } catch (\Exception $e) { \Yii::error($e); } } public function executeErpInitStoreGoods() { try { InventoryForm::initStoreGoods($this->store_id, $this->id, $this->count); } catch (\Exception $e) { \Yii::error($e); } } public function executeAgentFrontErpInitStoreGoods() { try { \app\modules\admin\models\agent\front_erp\InventoryForm::initStoreGoods($this->front_agent_admin_id, $this->id, $this->count); } catch (\Exception $e) { \Yii::error($e); } } }