|
|
@@ -56,7 +56,7 @@ class PensionTasks extends Command
|
|
56
|
56
|
$this->suOrderNew($timeLimit = 30);
|
|
57
|
57
|
$this->taobaoOrderNew($timeLimit = 30);
|
|
58
|
58
|
$this->vipOrderNew($timeLimit = 30);
|
|
59
|
|
- $this->dyOrderNew($timeLimit = 30);
|
|
|
59
|
+// $this->dyOrderNew($timeLimit = 30);
|
|
60
|
60
|
// $this->doThridPddOrderGzc($nowTime, $timeLimit = 30);
|
|
61
|
61
|
// $this->doThridJdOrderGzc($nowTime, $timeLimit = 30);
|
|
62
|
62
|
// $this->doThridSnOrderGzc($nowTime, $timeLimit = 30);
|
|
|
@@ -1549,7 +1549,7 @@ class PensionTasks extends Command
|
|
1549
|
1549
|
$date = date('Y-m-d H:i:s', strtotime('-' . $timeLimit . ' days'));
|
|
1550
|
1550
|
if($date < $online['create_time']) continue;
|
|
1551
|
1551
|
Db::transaction(function () use ($online) {
|
|
1552
|
|
- $this->settleAward($online);
|
|
|
1552
|
+ $this->settleAward($online,0);
|
|
1553
|
1553
|
Db::name('store_order')->where('order_id', $online['order_id'])->update(['is_settlement' => 1 ,'settlement_time' => date('Y-m-d H:i:s')]);
|
|
1554
|
1554
|
});
|
|
1555
|
1555
|
}
|
|
|
@@ -1575,7 +1575,7 @@ class PensionTasks extends Command
|
|
1575
|
1575
|
if($date < $online['create_time']) continue;
|
|
1576
|
1576
|
$online['order_id'] = $online['order_huafei_id'];
|
|
1577
|
1577
|
Db::transaction(function () use ($online) {
|
|
1578
|
|
- $this->settleAward($online);
|
|
|
1578
|
+ $this->settleAward($online,9);
|
|
1579
|
1579
|
Db::name('order_huafei')->where('order_huafei_id', $online['order_huafei_id'])->update(['gzc' => 1]);
|
|
1580
|
1580
|
});
|
|
1581
|
1581
|
}
|
|
|
@@ -1601,7 +1601,7 @@ class PensionTasks extends Command
|
|
1601
|
1601
|
if($date < $online['create_time']) continue;
|
|
1602
|
1602
|
$online['order_id'] = $online['order_pdd_id'];
|
|
1603
|
1603
|
Db::transaction(function () use ($online) {
|
|
1604
|
|
- $this->settleAward($online);
|
|
|
1604
|
+ $this->settleAward($online,1);
|
|
1605
|
1605
|
Db::name('order_pdd')->where('order_pdd_id', $online['order_pdd_id'])->update(['gzc' => 1]);
|
|
1606
|
1606
|
});
|
|
1607
|
1607
|
}
|
|
|
@@ -1627,7 +1627,7 @@ class PensionTasks extends Command
|
|
1627
|
1627
|
if($date < $online['create_time']) continue;
|
|
1628
|
1628
|
$online['order_id'] = $online['order_jd_id'];
|
|
1629
|
1629
|
Db::transaction(function () use ($online) {
|
|
1630
|
|
- $this->settleAward($online);
|
|
|
1630
|
+ $this->settleAward($online,6);
|
|
1631
|
1631
|
Db::name('order_jd')->where('order_jd_id', $online['order_jd_id'])->update(['gzc' => 1]);
|
|
1632
|
1632
|
});
|
|
1633
|
1633
|
}
|
|
|
@@ -1653,7 +1653,7 @@ class PensionTasks extends Command
|
|
1653
|
1653
|
if($date < $online['create_time']) continue;
|
|
1654
|
1654
|
$online['order_id'] = $online['order_su_id'];
|
|
1655
|
1655
|
Db::transaction(function () use ($online) {
|
|
1656
|
|
- $this->settleAward($online);
|
|
|
1656
|
+ $this->settleAward($online,3);
|
|
1657
|
1657
|
Db::name('order_su')->where('order_su_id', $online['order_su_id'])->update(['gzc' => 1]);
|
|
1658
|
1658
|
});
|
|
1659
|
1659
|
}
|
|
|
@@ -1679,7 +1679,7 @@ class PensionTasks extends Command
|
|
1679
|
1679
|
if($date < $online['create_time']) continue;
|
|
1680
|
1680
|
$online['order_id'] = $online['order_tb_id'];
|
|
1681
|
1681
|
Db::transaction(function () use ($online) {
|
|
1682
|
|
- $this->settleAward($online);
|
|
|
1682
|
+ $this->settleAward($online,5);
|
|
1683
|
1683
|
Db::name('order_tb')->where('order_tb_id', $online['order_tb_id'])->update(['gzc' => 1]);
|
|
1684
|
1684
|
});
|
|
1685
|
1685
|
}
|
|
|
@@ -1705,7 +1705,7 @@ class PensionTasks extends Command
|
|
1705
|
1705
|
if($date < $online['create_time']) continue;
|
|
1706
|
1706
|
$online['order_id'] = $online['order_vip_id'];
|
|
1707
|
1707
|
Db::transaction(function () use ($online) {
|
|
1708
|
|
- $this->settleAward($online);
|
|
|
1708
|
+ $this->settleAward($online,2);
|
|
1709
|
1709
|
Db::name('order_vip')->where('order_vip_id', $online['order_vip_id'])->update(['gzc' => 1]);
|
|
1710
|
1710
|
});
|
|
1711
|
1711
|
}
|
|
|
@@ -1746,13 +1746,14 @@ class PensionTasks extends Command
|
|
1746
|
1746
|
* @throws \think\db\exception\DbException
|
|
1747
|
1747
|
* @throws \think\db\exception\ModelNotFoundException
|
|
1748
|
1748
|
*/
|
|
1749
|
|
- public function settleAward($online)
|
|
|
1749
|
+ public function settleAward($online,$order_type)
|
|
1750
|
1750
|
{
|
|
1751
|
1751
|
// 结算积分
|
|
1752
|
1752
|
$user_sign_score_list = Db::name('user_sign_score')
|
|
1753
|
1753
|
->where('status', -1)
|
|
1754
|
1754
|
->where('order_id', $online['order_id'])
|
|
1755
|
1755
|
->where('pm', 1)
|
|
|
1756
|
+ ->where('order_type', $order_type)
|
|
1756
|
1757
|
->select()
|
|
1757
|
1758
|
->toArray();
|
|
1758
|
1759
|
if($user_sign_score_list){
|
|
|
@@ -1776,6 +1777,7 @@ class PensionTasks extends Command
|
|
1776
|
1777
|
->where('status', -1)
|
|
1777
|
1778
|
->where('order_id', $online['order_id'])
|
|
1778
|
1779
|
->where('type', 1)
|
|
|
1780
|
+ ->where('order_type', $order_type)
|
|
1779
|
1781
|
->select()
|
|
1780
|
1782
|
->toArray();
|
|
1781
|
1783
|
if($user_sign_hongbao_list){
|
|
|
@@ -1800,6 +1802,7 @@ class PensionTasks extends Command
|
|
1800
|
1802
|
->where('status', -1)
|
|
1801
|
1803
|
->where('order_id', $online['order_id'])
|
|
1802
|
1804
|
->where('type', 1)
|
|
|
1805
|
+ ->where('order_type', $order_type)
|
|
1803
|
1806
|
->select()
|
|
1804
|
1807
|
->toArray();
|
|
1805
|
1808
|
if($user_sign_jingdou_list){
|
|
|
@@ -1823,6 +1826,7 @@ class PensionTasks extends Command
|
|
1823
|
1826
|
->where('status', -1)
|
|
1824
|
1827
|
->where('order_id', $online['order_id'])
|
|
1825
|
1828
|
->where('type', 1)
|
|
|
1829
|
+ ->where('order_type', $order_type)
|
|
1826
|
1830
|
->select()
|
|
1827
|
1831
|
->toArray();
|
|
1828
|
1832
|
if($user_sign_fugou_list){
|
|
|
@@ -1847,6 +1851,7 @@ class PensionTasks extends Command
|
|
1847
|
1851
|
->where('status', -1)
|
|
1848
|
1852
|
->where('order_id', $online['order_id'])
|
|
1849
|
1853
|
->where('type', 1)
|
|
|
1854
|
+ ->where('order_type', $order_type)
|
|
1850
|
1855
|
->select()
|
|
1851
|
1856
|
->toArray();
|
|
1852
|
1857
|
if($user_sign_gongxian_list){
|
|
|
@@ -1872,6 +1877,7 @@ class PensionTasks extends Command
|
|
1872
|
1877
|
$user_pv_list = Db::name('user_pv_log')
|
|
1873
|
1878
|
->where('status', -1)
|
|
1874
|
1879
|
->where('order_id', $online['order_id'])
|
|
|
1880
|
+ ->where('order_type', $order_type)
|
|
1875
|
1881
|
->select()
|
|
1876
|
1882
|
->toArray();
|
|
1877
|
1883
|
if($user_pv_list) {
|
|
|
@@ -1895,6 +1901,7 @@ class PensionTasks extends Command
|
|
1895
|
1901
|
$user_bill_list = Db::name('user_bill')
|
|
1896
|
1902
|
->where('status', 0)
|
|
1897
|
1903
|
->where([ 'link_id' => $online['order_id']])
|
|
|
1904
|
+ ->where('type_shop', $order_type)
|
|
1898
|
1905
|
->where([ 'pm' => 1])
|
|
1899
|
1906
|
->select()
|
|
1900
|
1907
|
->toArray();
|