Skip to content

Commit 57765b4

Browse files
committed
Fixes
1 parent 43c50c5 commit 57765b4

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

lib/lathe/generators/mini_app/app/controllers/%app_path%/%app_name%_controller.rb.tt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
module <%=app_path.camelize%>
1+
module <%=package%>
22
class <%=app_class%>Controller < MiniApps::BaseController
33
def show
44
#手机端的webview请求会请求此controller
5-
service = MiniAppStudy::Service.new
5+
service = <%=package%>::Service.new
66
inst = service.find_instance_by_id(params[:id])
77
@model = service.dump_to_hash(inst,false)
88
render_base

lib/lathe/generators/mini_app/app/models/%app_path%/service.rb.tt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ module <%=package%>
4949
def dump_to_hash(instance,include_ref=true)
5050
{
5151
:api_url=>"/#{API::prefix}/#{API::versions[0]}/mmodules/<%=app_name%>/#{instance.id}",
52-
:m_url=>"/mini_apps/<%=app_name%>/#{id}",
52+
:m_url=>"/mini_apps/<%=app_name%>/#{instance.id}",
5353
:title=>instance.title
5454
}
5555
end

lib/lathe/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module Lathe
2-
VERSION = "0.0.4"
2+
VERSION = "0.0.5"
33
end

0 commit comments

Comments
 (0)