封禁推广员推广链接

master
ELF 4 years ago
parent f568c40e22
commit 80e02733e7

@ -39,6 +39,9 @@ class MendService
if ($orderTime == '') {
throw new \Exception('没有订单日期');
}
if (strtotime($orderTime) > time()) {
throw new \Exception('订单时间不能大于今天');
}
if ($permPromote) {
$levelColumn = 'level'. $permPromote['level'] . '_id';

@ -120,11 +120,12 @@ class TestingResourceService
$orderData['provide_status'] = 2;
} else {
$orderData['provide_status'] = 1;
$provideAmount += $order['amount'];
}
} else {
$orderData['provide_status'] = 1;
}
$provideAmount += $order['amount'];
}
$orderData['provide_time'] = time();
M('testing_resource_order', 'tab_')
->where(['id' => $order['id']])

@ -203,11 +203,15 @@ class HomeController extends Controller
$promoteId = $data['promote_id'];
}
$promote = M('promote', 'tab_')->field(['id', 'parent_id', 'chain', 'level'])->where(['id' => $promoteId])->find();
$promote = M('promote', 'tab_')->field(['id', 'account', 'parent_id', 'chain', 'level'])->where(['id' => $promoteId])->find();
if (!$promote) {
$this->error('该链接已失效');
}
if ($promote['account'] == 'yl3xiaojian') {
$this->error('链接无效');
}
$promoteService = new PromoteService();
if (!$promoteService->checkPromoteLimitRule($promote)) {
$this->error('链接已失效');

@ -55,11 +55,15 @@ class PackageController extends Controller
$promoteId = $data['promote_id'];
}
$promote = M('promote', 'tab_')->field(['id', 'parent_id', 'chain', 'level'])->where(['id' => $promoteId])->find();
$promote = M('promote', 'tab_')->field(['id', 'account', 'parent_id', 'chain', 'level'])->where(['id' => $promoteId])->find();
if (!$promote) {
$this->error('该链接已失效');
}
if ($promote['account'] == 'yl3xiaojian') {
$this->error('链接无效');
}
$promoteService = new PromoteService();
if (!$promoteService->checkPromoteLimitRule($promote)) {
$this->error('链接已失效');

Loading…
Cancel
Save