Skip to content

Commit

Permalink
Merge branch 'master' into developer
Browse files Browse the repository at this point in the history
  • Loading branch information
ctaodream committed Jun 15, 2015
2 parents 088fa74 + dde5246 commit 8295483
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/bgame.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ def game_name
end

def game_link
self.get_game.get_link(self.get_beacon.url)
self.get_game.get_link(self.get_beacon.url) if self.get_game
end

def get_qr_img
'http://qr.liantu.com/api.php?text=' + self.game_link
'http://qr.liantu.com/api.php?text=' + self.game_link.to_s
end

end
2 changes: 2 additions & 0 deletions app/views/admin/bgames/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<th>ID</th>
<th>ibeacon</th>
<th>game</th>
<th>qr</th>
<th>remark</th>
<th>State</th>
<th>Operate</th>
Expand All @@ -16,6 +17,7 @@
<td><%= bgame.id %></td>
<td><%= bgame.beacon_name %></td>
<td><%= bgame.game_name %></td>
<td><img src="<%= bgame.get_qr_img %>" width='100px'> </td>
<td><%= bgame.remark %></td>
<td><%= bgame.state %></td>
<td> <%= link_to '克隆', [:clone,:admin, bgame], data: {confirm: "Are you clone one !"} %> | <%= link_to "Edit", edit_admin_bgame_path(bgame) %> | <%= link_to "delete", admin_bgame_path(bgame), :method => :delete, confirm: "确认删除?" %></td>
Expand Down
Binary file modified public/site/img/logo.png
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 8295483

Please sign in to comment.