|
|
@@ -488,28 +488,12 @@ class ZqRule
|
|
|
*/
|
|
|
public function B($bet_match, $result_match, $result_match_r)
|
|
|
{
|
|
|
-// $bet_match = DB::table('money_buy_match')->where(['match_id'=> 3219925,'p_code'=>'bodan'])->first();
|
|
|
-// $result_match = DB::table('st_zq_result')->where('match_id', 3224833)->limit(10)->get();
|
|
|
-// select * from st_zq_result where id=1317823 order by id desc limit 10 ;
|
|
|
-// $result_match_r = DB::table('st_zq_result_record')->where('match_id', 3150765)->get()->toArray();
|
|
|
- //获取父/子级赔率代码
|
|
|
-
|
|
|
$p_code = $bet_match->p_code;
|
|
|
$odds_code = $bet_match->odds_code;
|
|
|
//==获取是否是滚球投注==
|
|
|
- $is_rolling = $bet_match->is_rolling;
|
|
|
- //如果是滚球投注,则进行危险球审核
|
|
|
- if ($is_rolling == 1) {
|
|
|
- $ret = commonFunction::WARN_CHECK($bet_match, $result_match);
|
|
|
- //如果审核不通过,则返回2 1赢 2平 -1输
|
|
|
- if ($ret['code'] == -1) {
|
|
|
- $data = [
|
|
|
- 'result' => 2,
|
|
|
- 'msg' => "滚球投注,危险球审核不通过",
|
|
|
- 'warn_more' => $ret['warn_more']
|
|
|
- ];
|
|
|
- return $data;
|
|
|
- }
|
|
|
+ $isgqwx = $this->GunqiuWeixian($bet_match, $result_match, $result_match_r);
|
|
|
+ if ($isgqwx) {
|
|
|
+ return $isgqwx;
|
|
|
}
|
|
|
//==end==
|
|
|
|
|
|
@@ -521,7 +505,7 @@ class ZqRule
|
|
|
|
|
|
//获取赛事最终结果数据
|
|
|
$result_match = $this->getHalfData($result_match);
|
|
|
- if (strstr($odds_code, "half")) {//上半场
|
|
|
+ if (strstr($odds_code, "_h")) {//上半场
|
|
|
|
|
|
//获取主客队上半场得分
|
|
|
$home_score = $result_match->u_home_score;
|
|
|
@@ -1967,7 +1951,7 @@ class ZqRule
|
|
|
|
|
|
$odds_code = $model->odds_code;
|
|
|
switch ($odds_code) {
|
|
|
- case "bgy":
|
|
|
+ case "bgy":
|
|
|
$returnDatas = $this->isgoal($resultModel, $model, bgy, $allword);
|
|
|
break;
|
|
|
case "bgn":
|