Exemplo n.º 1
0
 /**
  * Execute the console command.
  *
  * @return mixed
  */
 public function fire()
 {
     $this->info('Start to create a shop, please wait...');
     $shop = Shop::where('seller_id', 1)->first();
     if (count($shop) > 0) {
         $this->info('A shop exist, seller_id = 1');
         return;
     }
     $seller = Seller::find(1);
     $shopService = new ShopService();
     $shopService->createShop($seller, 1, 1, '测试小店', '测试小店', 'test', 'http://mmbiz.qpic.cn/mmbiz/4atXZMyxUkdTkThhj8icicfHpd07oaflgJpwwLficHRaLZQzYU8C7A3gWpua4dogmUefNln5K4ChSU9LeCanib6vEw/0?wx_fmt=png');
     $this->info('Finished');
     return;
 }
Exemplo n.º 2
0
 public function __construct(Request $request)
 {
     parent::__construct();
     $this->seller = Seller::find($this->sellerId);
     $this->inputData = $request;
 }
Exemplo n.º 3
0
 public function activateS2()
 {
     $shop = Seller::find($this->sellerId)->shop;
     return view('seller.activate2')->with('shop_id', $shop->id)->with('config', $this->getJsapiConfig());
 }