Merge branch 'abp-dev' of https://gitee.com/ccnetcore/Yi into abp-dev
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Yi.Framework.Bbs.Application.Services.Integral
|
|||||||
[Authorize]
|
[Authorize]
|
||||||
public async Task<int> PostWheel()
|
public async Task<int> PostWheel()
|
||||||
{
|
{
|
||||||
int[] values=new int[10] { 0,10,30,50,80,100,150,200,300,666};
|
int[] values=new int[10] { 0,10,30,50,60,80,90,100,200,666};
|
||||||
var index = GetWheelIndex();
|
var index = GetWheelIndex();
|
||||||
var value = values[index]-50;
|
var value = values[index]-50;
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ namespace Yi.Framework.Bbs.Application.Services.Integral
|
|||||||
|
|
||||||
private int GetWheelIndex()
|
private int GetWheelIndex()
|
||||||
{
|
{
|
||||||
int[] probabilities = { 10, 15, 10, 20, 10, 5, 5, 3, 2, 1 };
|
int[] probabilities = { 30, 40, 30, 20, 5, 3, 2, 2, 2, 1 };
|
||||||
|
|
||||||
int total = 0;
|
int total = 0;
|
||||||
foreach (var prob in probabilities)
|
foreach (var prob in probabilities)
|
||||||
|
|||||||
@@ -32,11 +32,11 @@ const prizes = [
|
|||||||
{ fonts: [{ text: '10', top: '10%' }], background: '#b8c5f2' },
|
{ fonts: [{ text: '10', top: '10%' }], background: '#b8c5f2' },
|
||||||
{ fonts: [{ text: '30', top: '10%' }], background: '#e9e8fe' },
|
{ fonts: [{ text: '30', top: '10%' }], background: '#e9e8fe' },
|
||||||
{ fonts: [{ text: '50', top: '10%' }], background: '#b8c5f2' },
|
{ fonts: [{ text: '50', top: '10%' }], background: '#b8c5f2' },
|
||||||
{ fonts: [{ text: '80', top: '10%' }], background: '#e9e8fe' },
|
{ fonts: [{ text: '60', top: '10%' }], background: '#e9e8fe' },
|
||||||
|
{ fonts: [{ text: '80', top: '10%' }], background: '#b8c5f2' },
|
||||||
|
{ fonts: [{ text: '90', top: '10%' }], background: '#e9e8fe' },
|
||||||
{ fonts: [{ text: '100', top: '10%' }], background: '#b8c5f2' },
|
{ fonts: [{ text: '100', top: '10%' }], background: '#b8c5f2' },
|
||||||
{ fonts: [{ text: '150', top: '10%' }], background: '#e9e8fe' },
|
{ fonts: [{ text: '200', top: '10%' }], background: '#e9e8fe' },
|
||||||
{ fonts: [{ text: '200', top: '10%' }], background: '#b8c5f2' },
|
|
||||||
{ fonts: [{ text: '300', top: '10%' }], background: '#e9e8fe' },
|
|
||||||
{ fonts: [{ text: '666', top: '10%' }], background: '#FAD400' }
|
{ fonts: [{ text: '666', top: '10%' }], background: '#FAD400' }
|
||||||
];
|
];
|
||||||
const buttons = [{
|
const buttons = [{
|
||||||
|
|||||||
Reference in New Issue
Block a user