Exemple #1
0
 public function build($msg)
 {
     parent::build($msg);
     $this->pages = array();
     foreach ($this->data['pages'] as $info) {
         $stistic = new YDWXZBPageStatistic();
         $stistic->click_pv = $info['click_pv'];
         $stistic->click_uv = $info['click_uv'];
         $stistic->shake_pv = $info['shake_pv'];
         $stistic->shake_uv = $info['shake_uv'];
         $stistic->page_id = $info['page_id'];
         $this->pages[] = $stistic;
     }
 }
Exemple #2
0
 public function build($msg)
 {
     parent::build($msg);
     $this->nick_name = $this->authorizer_info['nick_name'];
     $this->head_img = $this->authorizer_info['head_img'];
     $this->service_type_info = $this->authorizer_info['service_type_info'];
     $this->verify_type_info = $this->authorizer_info['verify_type_info'];
     $this->user_name = $this->authorizer_info['user_name'];
     $this->alias = $this->authorizer_info['alias'];
     $this->appid = $this->authorizer_info['appid'];
     foreach ($this->authorizer_info['func_info'] as $func) {
         foreach ($this->authorizer_info['func_info'] as $func) {
             $this->func_info[] = $func['funcscope_category']['id'];
         }
     }
 }
Exemple #3
0
 public function build($msg)
 {
     parent::build($msg);
     if ($this->repeat_ticket_list) {
         $this->repeat_ticket_list = array_map(function ($item) {
             return $item['ticket'];
         }, $this->repeat_ticket_list);
     }
     if ($this->expire_ticket_list) {
         $this->expire_ticket_list = array_map(function ($item) {
             return $item['ticket'];
         }, $this->expire_ticket_list);
     }
     if ($this->invalid_amount_ticket_list) {
         $this->invalid_amount_ticket_list = array_map(function ($item) {
             return $item['ticket'];
         }, $this->invalid_amount_ticket_list);
     }
 }
Exemple #4
0
 public function build($msg)
 {
     parent::build($msg);
     foreach ($this->business_list as $list) {
         $poi = new YDWXPoiGetResponse();
         $poi->available_state = $list['base_info']['available_state'];
         $poi->update_status = $list['base_info']['update_status'];
         $poi->poi = new YDWXPoiAddRequest();
         foreach ($list['base_info'] as $name => $value) {
             $poi->poi->{$name} = $value;
         }
         $this->pois[] = $poi;
     }
 }
Exemple #5
0
 public function build($msg)
 {
     parent::build($msg);
     $this->merchants = array();
     if (!$this->isSuccess()) {
         return;
     }
     foreach ($msg->list as $info) {
         $merchant = new YDWXCardMPMerchantResponse();
         foreach ($info as $name => $value) {
             $merchant->{$name} = $value;
         }
         $this->merchants[] = $merchant;
     }
 }