fix: 校验 agent_type 与 pay_channel 一致性,防止人工上分+在线渠道错配
This commit is contained in:
@@ -200,6 +200,9 @@ class Agent extends Common{
|
||||
if( empty($pay_channel) ){
|
||||
die(json_encode(['code'=>0,'msg'=>'请选择支付渠道']));
|
||||
}
|
||||
if( $agent_type == 2 && $pay_channel != 'OPR' ){
|
||||
die(json_encode(['code'=>0,'msg'=>'人工上分模式只能选OPR渠道']));
|
||||
}
|
||||
if( !in_array($type_xima,[1,2]) ){
|
||||
die(json_encode(['code'=>0,'msg'=>'洗码方式错误']));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user