Skip to content

Commit

Permalink
program
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Oct 18, 2023
1 parent 86a6e37 commit f92ccc0
Show file tree
Hide file tree
Showing 2 changed files with 78 additions and 74 deletions.
134 changes: 67 additions & 67 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
GIT
remote: https://github.com/work-design/rails_auth.git
revision: 98a195d511eab3744cdf04b836c7d5290bec21bb
revision: 329d7cfd760e02c490103345e9482885d3bec5c4
specs:
rails_auth (1.2.0)
bcrypt (~> 3.1)
rails_com (~> 1.2)

GIT
remote: https://github.com/work-design/rails_com.git
revision: 012800978600f2209627587c8d7561b30585a5bb
revision: b8854861b08d1f620597065944f406aa8dd8d384
specs:
rails_com (1.3.0)
acme-client
Expand All @@ -25,28 +25,28 @@ GIT

GIT
remote: https://github.com/work-design/rails_design.git
revision: 3169282f9a0a982a03faa9923b77b2c502f590b4
revision: 45a4749982bd3713564f997716b9d9e2d2b11b29
specs:
rails_design (0.0.1)
rails

GIT
remote: https://github.com/work-design/rails_extend.git
revision: e8c06ccc803435d2d35195a2d1ba3573c330d8e4
revision: c0ae30365a524303d0a39be23fc31d675f2b827b
specs:
rails_extend (1.0.1)
rails (>= 5.0)

GIT
remote: https://github.com/work-design/rails_notice.git
revision: 8398498f08259fc1035aa5b20cf00587b4210473
revision: e0e1a0964524c4ad4ea2750aa3e5efa0c70c2308
specs:
rails_notice (1.0.3)
rails_extend

GIT
remote: https://github.com/work-design/rails_org.git
revision: b84964b7fb451447645e917b1f326953620b4e9a
revision: b0371c7f7e12c9f1e4eec699cc87bb00eb3322b9
specs:
rails_org (0.0.1)
rails_com (~> 1.2)
Expand All @@ -66,70 +66,70 @@ GEM
acme-client (2.0.15)
faraday (>= 1.0, < 3.0.0)
faraday-retry (>= 1.0, < 3.0.0)
actioncable (7.1.0)
actionpack (= 7.1.0)
activesupport (= 7.1.0)
actioncable (7.1.1)
actionpack (= 7.1.1)
activesupport (= 7.1.1)
nio4r (~> 2.0)
websocket-driver (>= 0.6.1)
zeitwerk (~> 2.6)
actionmailbox (7.1.0)
actionpack (= 7.1.0)
activejob (= 7.1.0)
activerecord (= 7.1.0)
activestorage (= 7.1.0)
activesupport (= 7.1.0)
actionmailbox (7.1.1)
actionpack (= 7.1.1)
activejob (= 7.1.1)
activerecord (= 7.1.1)
activestorage (= 7.1.1)
activesupport (= 7.1.1)
mail (>= 2.7.1)
net-imap
net-pop
net-smtp
actionmailer (7.1.0)
actionpack (= 7.1.0)
actionview (= 7.1.0)
activejob (= 7.1.0)
activesupport (= 7.1.0)
actionmailer (7.1.1)
actionpack (= 7.1.1)
actionview (= 7.1.1)
activejob (= 7.1.1)
activesupport (= 7.1.1)
mail (~> 2.5, >= 2.5.4)
net-imap
net-pop
net-smtp
rails-dom-testing (~> 2.2)
actionpack (7.1.0)
actionview (= 7.1.0)
activesupport (= 7.1.0)
actionpack (7.1.1)
actionview (= 7.1.1)
activesupport (= 7.1.1)
nokogiri (>= 1.8.5)
rack (>= 2.2.4)
rack-session (>= 1.0.1)
rack-test (>= 0.6.3)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
actiontext (7.1.0)
actionpack (= 7.1.0)
activerecord (= 7.1.0)
activestorage (= 7.1.0)
activesupport (= 7.1.0)
actiontext (7.1.1)
actionpack (= 7.1.1)
activerecord (= 7.1.1)
activestorage (= 7.1.1)
activesupport (= 7.1.1)
globalid (>= 0.6.0)
nokogiri (>= 1.8.5)
actionview (7.1.0)
activesupport (= 7.1.0)
actionview (7.1.1)
activesupport (= 7.1.1)
builder (~> 3.1)
erubi (~> 1.11)
rails-dom-testing (~> 2.2)
rails-html-sanitizer (~> 1.6)
activejob (7.1.0)
activesupport (= 7.1.0)
activejob (7.1.1)
activesupport (= 7.1.1)
globalid (>= 0.3.6)
activemodel (7.1.0)
activesupport (= 7.1.0)
activerecord (7.1.0)
activemodel (= 7.1.0)
activesupport (= 7.1.0)
activemodel (7.1.1)
activesupport (= 7.1.1)
activerecord (7.1.1)
activemodel (= 7.1.1)
activesupport (= 7.1.1)
timeout (>= 0.4.0)
activestorage (7.1.0)
actionpack (= 7.1.0)
activejob (= 7.1.0)
activerecord (= 7.1.0)
activesupport (= 7.1.0)
activestorage (7.1.1)
actionpack (= 7.1.1)
activejob (= 7.1.1)
activerecord (= 7.1.1)
activesupport (= 7.1.1)
marcel (~> 1.0)
activesupport (7.1.0)
activesupport (7.1.1)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
Expand Down Expand Up @@ -170,14 +170,14 @@ GEM
faraday (~> 2.0)
globalid (1.2.1)
activesupport (>= 6.1)
http-2-next (1.0.0)
http-2-next (0.5.1)
http-form_data (2.3.0)
httpx (0.24.6)
http-2-next (>= 0.4.1)
httpx (0.24.7)
http-2-next (< 1.0.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
io-console (0.6.0)
irb (1.8.1)
irb (1.8.3)
rdoc
reline (>= 0.3.8)
kaminari (1.2.2)
Expand All @@ -192,7 +192,7 @@ GEM
activerecord
kaminari-core (= 1.2.2)
kaminari-core (1.2.2)
loofah (2.21.3)
loofah (2.21.4)
crass (~> 1.0.2)
nokogiri (>= 1.12.0)
mail (2.8.1)
Expand All @@ -207,7 +207,7 @@ GEM
mutex_m (0.1.2)
net-http (0.3.2)
uri
net-imap (0.4.0)
net-imap (0.4.1)
date
net-protocol
net-pop (0.1.2)
Expand All @@ -226,7 +226,7 @@ GEM
activesupport (>= 7.0.0)
rack
railties (>= 7.0.0)
psych (5.1.0)
psych (5.1.1.1)
stringio
puma (6.4.0)
nio4r (~> 2.0)
Expand All @@ -239,30 +239,30 @@ GEM
rackup (2.1.0)
rack (>= 3)
webrick (~> 1.8)
rails (7.1.0)
actioncable (= 7.1.0)
actionmailbox (= 7.1.0)
actionmailer (= 7.1.0)
actionpack (= 7.1.0)
actiontext (= 7.1.0)
actionview (= 7.1.0)
activejob (= 7.1.0)
activemodel (= 7.1.0)
activerecord (= 7.1.0)
activestorage (= 7.1.0)
activesupport (= 7.1.0)
rails (7.1.1)
actioncable (= 7.1.1)
actionmailbox (= 7.1.1)
actionmailer (= 7.1.1)
actionpack (= 7.1.1)
actiontext (= 7.1.1)
actionview (= 7.1.1)
activejob (= 7.1.1)
activemodel (= 7.1.1)
activerecord (= 7.1.1)
activestorage (= 7.1.1)
activesupport (= 7.1.1)
bundler (>= 1.15.0)
railties (= 7.1.0)
railties (= 7.1.1)
rails-dom-testing (2.2.0)
activesupport (>= 5.0.0)
minitest
nokogiri (>= 1.6)
rails-html-sanitizer (1.6.0)
loofah (~> 2.21)
nokogiri (~> 1.14)
railties (7.1.0)
actionpack (= 7.1.0)
activesupport (= 7.1.0)
railties (7.1.1)
actionpack (= 7.1.1)
activesupport (= 7.1.1)
irb
rackup (>= 1.0.0)
rake (>= 12.2)
Expand All @@ -283,7 +283,7 @@ GEM
stringio (3.0.9)
thor (1.2.2)
timeout (0.4.0)
turbo-rails (1.4.0)
turbo-rails (1.5.0)
actionpack (>= 6.0.0)
activejob (>= 6.0.0)
railties (>= 6.0.0)
Expand Down
18 changes: 11 additions & 7 deletions app/models/wechat/model/app/program_agency.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,18 +59,22 @@ def set_domain(action: 'set')
api.modify_domain(**h)
end

def ext_json
{
extAppid: appid,
ext: {
host: URI::HTTPS.build(host: domain).to_s,
path: organ.redirect_path
}
}
end

def commit(platform_template)
r = api.commit(
template_id: platform_template.template_id,
user_version: platform_template.user_version,
user_desc: platform_template.user_desc,
ext_json: {
extAppid: appid,
ext: {
host: URI::HTTPS.build(host: domain).to_s,
path: organ.redirect_path || 'board'
}
}.to_json
ext_json: ext_json.to_json
)
if r['errcode'] == 0
self.platform_template = platform_template
Expand Down

0 comments on commit f92ccc0

Please sign in to comment.