|
@@ -601,17 +601,7 @@ class Cron
|
|
$start = Dever::maketime($start_time);
|
|
$start = Dever::maketime($start_time);
|
|
$end = Dever::maketime($end_time);
|
|
$end = Dever::maketime($end_time);
|
|
$shops = Dever::db('shop/info')->getguiAll(array('type'=>2));
|
|
$shops = Dever::db('shop/info')->getguiAll(array('type'=>2));
|
|
- if ($shops) {
|
|
|
|
- $shop_data = array();
|
|
|
|
- foreach ($shops as $k => $v) {
|
|
|
|
- if ($v['agent_mid'] <1) {
|
|
|
|
- $shop_data[$v['id']] = $v['name'];
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if ($shop_data) {
|
|
|
|
- Dever::alert('以下门店没有绑定代理商:' . implode(',', $shop_data));
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
foreach ($shops as $k => $v) {
|
|
foreach ($shops as $k => $v) {
|
|
#业绩补贴:除了创V0.02,创V>=10个0.05,创V>=20个0.08
|
|
#业绩补贴:除了创V0.02,创V>=10个0.05,创V>=20个0.08
|
|
// $subsidy = 0;
|
|
// $subsidy = 0;
|
|
@@ -801,6 +791,18 @@ class Cron
|
|
# 确认发放
|
|
# 确认发放
|
|
public function areaCash_commit_api()
|
|
public function areaCash_commit_api()
|
|
{
|
|
{
|
|
|
|
+ $shops = Dever::db('shop/info')->getguiAll(array('type'=>2));
|
|
|
|
+ if ($shops) {
|
|
|
|
+ $shop_data = array();
|
|
|
|
+ foreach ($shops as $k => $v) {
|
|
|
|
+ if ($v['agent_mid'] <1) {
|
|
|
|
+ $shop_data[$v['id']] = $v['name'];
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if ($shop_data) {
|
|
|
|
+ Dever::alert('以下门店没有绑定代理商:' . implode(',', $shop_data));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
$month = Dever::input('month');
|
|
$month = Dever::input('month');
|
|
if ($month) {
|
|
if ($month) {
|
|
$month = Dever::maketime($month);
|
|
$month = Dever::maketime($month);
|