|
@@ -307,6 +307,7 @@ class Lave extends Api
|
|
|
if ($date != $now_date) { //先确定月份不同
|
|
if ($date != $now_date) { //先确定月份不同
|
|
|
if ($today == $day||$today==$last) { //再确定是不是签约那天或者是当月的最后一天
|
|
if ($today == $day||$today==$last) { //再确定是不是签约那天或者是当月的最后一天
|
|
|
// var_dump(123);
|
|
// var_dump(123);
|
|
|
|
|
+ @file_put_contents("quanju.txt", $v['contract_display_account']."测试申请扣款-\r\n", 8);
|
|
|
$cid=$v['cid'];
|
|
$cid=$v['cid'];
|
|
|
// if ($this->querySign($cid,$v['uid'],$v['plan_id'],$v['contract_code'])){
|
|
// if ($this->querySign($cid,$v['uid'],$v['plan_id'],$v['contract_code'])){
|
|
|
$arr['mch_id'] =Company::where('id', $cid)->value('pay_weixin_mchid');
|
|
$arr['mch_id'] =Company::where('id', $cid)->value('pay_weixin_mchid');
|
|
@@ -330,6 +331,7 @@ class Lave extends Api
|
|
|
$where1['type']='0';
|
|
$where1['type']='0';
|
|
|
$where1['record_id']=$v['id'];
|
|
$where1['record_id']=$v['id'];
|
|
|
// $where1['help_id']='0';
|
|
// $where1['help_id']='0';
|
|
|
|
|
+ @file_put_contents("quanju.txt", json_encode($where1)."测试申请扣款2-\r\n", 8);
|
|
|
$order = LaveMonthModel::create($where1);
|
|
$order = LaveMonthModel::create($where1);
|
|
|
// }
|
|
// }
|
|
|
var_dump($order);
|
|
var_dump($order);
|