Compare commits
2
Commits
2e9462d7a3
...
13cd0cbea4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
13cd0cbea4 | ||
|
|
a7edf5347d |
@@ -433,6 +433,7 @@ class Agent extends Common{
|
||||
$data['price_tc_ths'] = $price_tc_ths;
|
||||
$data['price_tc_hjths'] = $price_tc_hjths;
|
||||
|
||||
$data['area_id'] = 3;
|
||||
$data['referral_code'] = getRandCode();
|
||||
// $data['agent_commission_tc'] = $agent_commission_tc;
|
||||
// $data['agent_commission_tc_banker'] = $agent_commission_tc_banker;
|
||||
|
||||
@@ -286,7 +286,7 @@ return [
|
||||
'pay' => 'alinPay',
|
||||
'default_agent' => 111,
|
||||
'default_wt_agent' => 111,
|
||||
'limit_agent' => [111],
|
||||
'limit_agent' => [],
|
||||
],
|
||||
],
|
||||
|
||||
|
||||
@@ -114,8 +114,9 @@ class Order Extends Controller{
|
||||
$zdlIdArr = explode(',',$user['agent_parent_id_path']);
|
||||
$area_list = config('area_list');
|
||||
//判断是否金流支线,如果不是的话,不允许充值
|
||||
$isAllow = false;
|
||||
foreach($area_list[$user['area_id']]['limit_agent'] as $allowAgentId){
|
||||
$limitAgents = $area_list[$user['area_id']]['limit_agent'];
|
||||
$isAllow = empty($limitAgents);
|
||||
foreach($limitAgents as $allowAgentId){
|
||||
if(in_array($allowAgentId,$zdlIdArr)){
|
||||
$isAllow = true;
|
||||
}
|
||||
@@ -184,9 +185,10 @@ class Order Extends Controller{
|
||||
$user = Db::name('user')->where(array('id' => $user_id))->find();
|
||||
$zdlIdArr = explode(',',$user['agent_parent_id_path']);
|
||||
$area_list = config('area_list');
|
||||
//判断是否金流支线,如果不是的话,不允许充值
|
||||
$isAllow = false;
|
||||
foreach($area_list[$user['area_id']]['limit_agent'] as $allowAgentId){
|
||||
//判断是否金流支线,如果不是的话,不允许提现
|
||||
$limitAgents = $area_list[$user['area_id']]['limit_agent'];
|
||||
$isAllow = empty($limitAgents);
|
||||
foreach($limitAgents as $allowAgentId){
|
||||
if(in_array($allowAgentId,$zdlIdArr)){
|
||||
$isAllow = true;
|
||||
}
|
||||
|
||||
@@ -43,8 +43,9 @@ trait ccpayPay
|
||||
return json(['Success' => 1, 'Data' => $data]);
|
||||
}
|
||||
|
||||
$isAllow = false;
|
||||
foreach ($area_list[$user['area_id']]['limit_agent'] as $allowAgentId) {
|
||||
$limitAgents = $area_list[$user['area_id']]['limit_agent'];
|
||||
$isAllow = empty($limitAgents);
|
||||
foreach ($limitAgents as $allowAgentId) {
|
||||
if (in_array($allowAgentId, $zdlIdArr)) {
|
||||
$isAllow = true;
|
||||
}
|
||||
|
||||
@@ -88,8 +88,9 @@ trait epayPay
|
||||
return json(['Success' => 1, 'Data' => $data]);
|
||||
}
|
||||
|
||||
$isAllow = false;
|
||||
foreach ($area_list[$user['area_id']]['limit_agent'] as $allowAgentId) {
|
||||
$limitAgents = $area_list[$user['area_id']]['limit_agent'];
|
||||
$isAllow = empty($limitAgents);
|
||||
foreach ($limitAgents as $allowAgentId) {
|
||||
if (in_array($allowAgentId, $zdlIdArr)) {
|
||||
$isAllow = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user