wmsClient = new XinyiWms(); break; case 2: $this->wmsClient = new GwallWms(); break; default: throw new \Exception('仓库不存在'); } } public function saleOrderCreate($params) { return $this->wmsClient->saleOrderCreate($params); } public function goodsStockInfoSingle($wmsCode, $inventoryType = 'ZP') { return $this->wmsClient->goodsStockInfoSingle($wmsCode, $inventoryType); } public function goodsStockInfo($params, $inventoryType = 'ZP') { return $this->wmsClient->goodsStockInfo($params, $inventoryType); } public function goodsSync($params) { return $this->wmsClient->goodsSync($params); } public function orderCancel($params) { return $this->wmsClient->orderCancel($params); } public function saleReturnOrderCreate($params) { return $this->wmsClient->saleReturnOrderCreate($params); } public function stockInCreate($params, $type = 0) { return $this->wmsClient->stockInCreate($params, $type); } public function stockOutCreate($params) { return $this->wmsClient->stockOutCreate($params); } public static function callback($params) { $client = new XinyiWms(); return $client->callback($params); } }