Example #1
0
 public function actionBlank()
 {
     $this->setReturnUrl();
     return $this->render('index', ['data' => new ActiveDataProvider(['query' => Order::find()->with('goods')->status(Order::STATUS_BLANK)->desc()])]);
 }
Example #2
0
 public function getOrder()
 {
     if (!$this->_order) {
         $access_token = $this->token;
         if (!$access_token || !($order = Order::find()->where(['access_token' => $access_token])->status(Order::STATUS_BLANK)->one())) {
             $order = new Order();
         }
         $this->_order = new OrderObject($order);
     }
     return $this->_order;
 }