Skip to content

Commit

Permalink
添加红包功能
Browse files Browse the repository at this point in the history
  • Loading branch information
qieangel2013 committed Jan 1, 2016
1 parent eca2752 commit 512b929
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
$obj=new zqf();
第一个参数是红包总额,第二个人参数红包数量,第三个参数默认代表拼手气红包,设置为1的话为普通红包
拼手气红包
$hongb= $obj->hongbao(10,8);或者$hongb= $obj->hongbao(10,8,0);
$hongb= $obj->hongbao(10,8);或者$hongb= $obj->hongbao(10,8,0);返回数组为Array ( [0] => 1.33 [1] => 1.02 [2] => 1.28 [3] => 0.44 [4] => 1.37 [5] => 0.81 [6] => 1.81 [7] => 1.94 )
普通红包,每个人数额一样设置第三个参数
$hongb= $obj->hongbao(10,8,1);
$hongb= $obj->hongbao(10,8,1);返回数组为Array ( [0] => 1.25 [1] => 1.25 [2] => 1.25 [3] => 1.25 [4] => 1.25 [5] => 1.25 [6] => 1.25 [7] => 1.25 )
var_dump($hongb);
###高并发计数器使用方法如下:
首先安装php扩展zqf.so

This comment has been minimized.

Copy link
@aa5895

aa5895 Oct 5, 2016

0 comments on commit 512b929

This comment has been minimized.

Copy link
@aa5895

aa5895 Oct 5, 2016

0 comments on commit 512b929

Expand Down

0 comments on commit 512b929

Please sign in to comment.