/** * 激活 第一步 * @author Hanxiang * @return $this */ public function activateS1() { $sn = Input::get('sn') ? Input::get('sn') : ''; $shopDevice = ShopDevice::where('device_sn', $sn)->first(); if (count($shopDevice) && $shopDevice->shop_id) { // TODO $shop = Shop::find($shopDevice->shop_id); return redirect()->route('shopIndex', $shop->short_id); } return view('seller.activate')->with('config', $this->getJsapiConfig())->with('sn', $sn); }