Git Product home page Git Product logo

flarum-ext-money-plus's Introduction

说明

请先删除其它可能创建money数据表的插件,包括flarum-ext-monney插件不需要安装

这个插件是完成的独立插件

flarum-ext-money-plus

This is a collect extension include:

Depend on your requirment.

Give money to your users for different actions.

This extension is compatible with Flarum >= 1.8

Installation

composer require gtdxyz/flarum-ext-money-plus

Updating

composer update gtdxyz/flarum-ext-money
php flarum migrate
php flarum cache:clear

Configuration

You can configure this extension in the Admin area, in the Extensions tab.

flarum-ext-money-plus's People

Contributors

daocatt avatar

Stargazers

 avatar  avatar

Watchers

 avatar

flarum-ext-money-plus's Issues

启用演示站点

https://zaowan.xyz

部分插件都在自用。

安装环境ubuntu20,nginx,php8.3,mysql8

特别配置
config.php

<?php
date_default_timezone_set('PRC');
return array(

弱弱的来咨询一下后台这两个设置是什么意思

image
【0 时不展示】这个好理解,就是用的金钱为0时,就在主页不展示这一项。
但是【当帖子被删除】和【当帖子被隐藏或被恢复时 (default)】这是啥意思啊,当帖子被删除时,是扣掉之前的奖励吗?当帖子被隐藏或被恢复时,相应的,隐藏就扣掉,恢复又增加金币,是我这样理解的吗?
感觉这两句,没写完整,......

[已解决]启用拓展时无法启动,报错信息如下

问题一:打开扩展时报错:
admin#/extension/gtdxyz-money-plus:1 Uncaught (in promise)
{
"status": 500,
"options": {
"background": true,
"url": "https://********/api/extensions/gtdxyz-money-plus",
"method": "POST",
"body": {
"enabled": true
}
},
"xhr": {},
"responseText": "{"errors":[{"status":"500","code":"unknown"}]}",
"response": {
"errors": [
{
"status": "500",
"code": "unknown"
}
]
},
"alert": {
"type": "error",
"content": [
"糟糕,出错啦!请刷新页面重试。"
],
"controls": false
}
}

问题二:开启后点击金币相关操作报错

金币操作时间不对,群里有人说没有处理ISO 8601

群里还有人说这个插件也没有新建 Carbon ,但是直接 Date() 了

$userMoneyHistory->change_time = Date("Y-m-d H:i:s");


image
而我的docker容器已经设置了上海时区,依然无效。
bee93e3c0715938659b94e830ffe4001

希望大佬能修复一下这个问题

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.