コード例 #1
0
ファイル: AdunitController.go プロジェクト: onealtang/monitor
func (this *AdunitController) QueryAdunit() {
	offerId := this.GetString("offerId")
	adunit := m.GetAdunit(offerId)

	this.Data["json"] = map[string]interface{}{"adunit": &adunit}
	this.ServeJson()
}
コード例 #2
0
func (this *InstallController) CheckDeviceState() {
	guid := this.GetString("guid")

	beego.Debug("guid: ", guid)

	result := map[string]interface{}{}

	s2sActivelog := m.GetS2sActiveLog(guid)
	result["deviceId"] = s2sActivelog.DeviceId
	result["offerId"] = s2sActivelog.OfferId

	adunit := m.GetAdunit(s2sActivelog.OfferId)
	result["adunit"] = adunit

	this.Data["json"] = &result
	this.ServeJson()

}