看牌(state = 1) 或 弃牌(state = 2)详细请看附件
public function controlCard(){
if(Request::instance()->isPost()){
$gid = input('gid');
$uid = input('uid');
$state = input('state');
$data = input();
if(!$uid || !$state || !$gid){
$arr = [
'state' => 0,
'message' => "请求参数错误!"
];
return json($arr);
}
$gameinfo = Db::name('PokerGameInfo')->where(['uid'=>$uid,'gid'=>$gid])->find();
if ($gameinfo && $gameinfo['handcard']) {
$card = json_decode($gameinfo['handcard'],true);
if ($st
扎金花算法
最新推荐文章于 2021-11-18 20:22:59 发布