|
|
@@ -211,15 +211,7 @@ class HttpServerSettelement
|
|
|
list($order_ids, $bettype, $settype, $game_code, $match_id, $change_status) = $this->requestpara($request, $response, $paras);
|
|
|
|
|
|
if (empty($order_ids)) {
|
|
|
- $needs_matchs = DB::table('money_buy_match')->where(['game_code' => $game_code, 'match_id' => $match_id])->count();
|
|
|
- if ($needs_matchs <= 0) {
|
|
|
- $this->cgStatus($game_code, $match_id, $this->change_status);
|
|
|
- goto LABRETURN;
|
|
|
- return;
|
|
|
- } else {
|
|
|
- throw new \Exception('订单号不能为空!');
|
|
|
- }
|
|
|
- unset($needs_matchs);
|
|
|
+ goto LABRETURN;
|
|
|
}
|
|
|
|
|
|
if ($bettype == 1) {
|
|
|
@@ -243,6 +235,11 @@ class HttpServerSettelement
|
|
|
go(function () use ($data, $redisconfig) {
|
|
|
$redis = new Swoole\Coroutine\Redis();
|
|
|
$redis->connect($redisconfig['host'], $redisconfig['port']);
|
|
|
+ if (!empty($redis['passwd'])) {
|
|
|
+ $redis->auth($redis['passwd']);
|
|
|
+ }
|
|
|
+ $redis->select($redis['db']);
|
|
|
+
|
|
|
$redis->lpush(self::TASKQNUM, $data);
|
|
|
return;
|
|
|
});
|