新增:上链需要项目开启区块链机制

This commit is contained in:
2023-03-07 15:38:54 +08:00
parent a291641505
commit 3e0df7c1b9
6 changed files with 9 additions and 9 deletions

View File

@@ -160,7 +160,7 @@ class IssuesController < ApplicationController
# 新增时向grimoirelab推送事件
IssueWebhookJob.set(wait: 5.seconds).perform_later(@issue.id)
if Site.has_blockchain?
if Site.has_blockchain? && @project.use_blockchain
# author: zxh
# 扣除发起人的token
if @issue.blockchain_token_num > 0