查询页面列表
@param array $data
@return bool
@throws \yii\web\HttpException
974879
public function searchPage(array $data)
    {
        $result = $this->wechat->httpRaw(self::WECHAT_PAGE_SEARCH_PREFIX, $data, [
            'access_token' => $this->wechat->getAccessToken()
        ]);
        return isset($result['errcode']) && !$result['errcode'] ? $result['data'] : false;
    }
1079938
public function updateCard(array $data)
    {
        $result = $this->wechat->httpPost(self::WECHAT_CARD_LIST_GET_PREFIX, $data, [
            'access_token' => $this->wechat->getAccessToken()
        ]);
        return isset($result['errmsg']) && $result['errmsg'] === 'ok';
    }
69029
public function set_httpHeader($data = [])
    {
        //将二维数组转为一维数组
        $result = [];
        foreach ($data as $key => $row) {
            if (is_array($row)) {
                if (isset($row[0])) {
                    $result[] = $row[0];
                }
            } else {
                $result[] = $row;
            }
        }

        $this->config['CURLOPT_HTTPHEADER'] = $data;

        return $this;
    }
65018
public function createQrCode(array $data)
    {
        $result = $this->httpRaw(self::WECHAT_QR_CODE_CREATE_PREFIX, $data, [
            'access_token' => $this->getAccessToken()
        ]);
        return !array_key_exists('errcode', $result) ? $result : false;
    }
766618
public function php($data)
    {
        // Is Server-side Validation Enabled?
        
        if (!$this->getServerSide()) {
            return true;
        }
        
        // Initialise:
        
        $valid = true;
        
        // Validate Fields:
        
        foreach ($this->getFormFields() as $field) {
            $valid = ($field->validate($this) && $valid);
        }
        
        // Validate Rules:
        
        foreach ($this->rules as $fieldName => $rules) {
            
            if ($field = $this->getDataField($fieldName)) {
                
                foreach ($rules as $rule) {
                    
                    // Test Field Data:
                    
                    if (!$rule->test($data[$fieldName])) {
                        $this->validationError($fieldName, $rule->getMessage(), 'validation');
                        $valid = false;
                    }
                    
                }
                
            }
            
        }
        
        // Answer Result:
        
        return $valid;
    }
1078272
public function updateShelf(array $data)
    {
        $result = $this->wechat->httpRaw(self::WECHAT_SHELF_UPDATE_PREFIX, $data, [
            'access_token' => $this->wechat->getAccessToken()
        ]);
        return isset($result['errmsg']) && $result['errmsg'] == 'success';
    }
473453
private function write($data){
		$result = $this->exdb->delete(
			$this->table_name,
			array($this->table_definition->key_column=>$this->row_id)
		);

		if( !$result ){
			// 書き込みに失敗
			// Sorry, failed to save changes. Please try again later.
			return $this->confirm($data);
		}

		$action = $this->form_endpoint->generate_url($this->table_name, $this->row_id, $this->action_name);
		@header('Location: '.$action.'?'.urlencode(':action').'=done');
		return '';
	}
707141
public function sendTemplateMessage(array $data)
    {
        $result = $this->httpRaw(self::WECHAT_TEMPLATE_MESSAGE_SEND_PREFIX, array_merge([
            'url' => null,
            'topcolor' => '#FF0000'
        ], $data), [
            'access_token' => $this->getAccessToken()
        ]);
        return isset($result['msgid']) ? $result['msgid'] : false;
    }
155698
public function updateUser(array $data)
    {
        $result = $this->httpRaw(self::WECHAT_USER_UPDATE_PREFIX, $data, [
            'access_token' => $this->getAccessToken()
        ]);
        return isset($result['errcode']) && ($result['errcode'] ? $this->dump([$data,$result,$this->getAccessToken()]) : !$result['errcode']);
    }
222291
public function searchDevice(array $data)
    {
        $result = $this->wechat->httpRaw(self::WECHAT_DEVICE_SEARCH_PREFIX, $data, [
            'access_token' => $this->wechat->getAccessToken()
        ]);
        return isset($result['errcode']) && !$result['errcode'] ? $result['data'] : false;
    }
1017203
public function Check($data)
    {
        $value = $data[$this->prefix . 'Page'];
        return $this->pageField->Check($value);
    }
823216
public function addPage(array $data)
    {
        $result = $this->wechat->httpRaw(self::WECHAT_PAGE_ADD_PREFIX, $data, [
            'access_token' => $this->wechat->getAccessToken()
        ]);
        return isset($result['errcode']) && !$result['errcode'] ? $result['data'] : false;
    }
424194
public function bindPage(array $data)
    {
        $url = "https://api.weixin.qq.com/shakearound/device/bindpage?access_token=ACCESS_TOKEN";
        $this->registerApi($url, __FUNCTION__, func_get_args());
        return $this->httpPostForJson($url, $data);
    }
724254
public function addPoi(array $data)
    {
        $result = $this->wechat->httpPost(self::WECHAT_POI_ADD_PREFIX, $data, [
            'access_token' => $this->wechat->getAccessToken()
        ]);
        return isset($result['errmsg']) && $result['errmsg'] === 'ok';
    }
987406
public function pageInfo(array $data, $type)
    {
        $form = $this->adminPageInfoForm;
        $form->setHydrator(new HydratorPageInfo());
        $class = $this->collectionOptions->getEntityOptions()->getPageInfo();
        $form->bind(new $class());
        $form->setData($data);
        if (!$form->isValid()) {
            return false;
        }

        /** @var \PServerCore\Entity\PageInfo $pageInfo */
        $pageInfo = $form->getData();
        $pageInfo->setType($type);

        $this->entityManager->persist($pageInfo);
        $this->entityManager->flush();

        return $pageInfo;
    }
267385
public function sendAll(array $data)
    {
        $result = $this->httpRaw(self::WECHAT_SEND_ALL_PREFIX, $data, [
            'access_token' => $this->getAccessToken()
        ]);
        return isset($result['errcode']) && !$result['errcode'];
    }
587165
public function updateUser(array $data)
    {
        $result = $this->httpRaw(self::WECHAT_USER_UPDATE_PREFIX, $data, [
            'access_token' => $this->getAccessToken()
        ]);
        return isset($result['errcode']) && !$result['errcode'];
    }