|
|
@@ -359,9 +359,11 @@ class WechatService
|
|
|
// @file_put_contents("quanju.txt", json_encode($successful)."-这是什么\r\n", 8);
|
|
|
if (isset($notify['plan_id'])) {
|
|
|
if (isset($notify['change_type']) && $notify['change_type']) {
|
|
|
+ @file_put_contents("quanju.txt", $notify['change_type']."-状态\r\n", 8);
|
|
|
if ($notify['change_type']=='ADD'){
|
|
|
$cs=WechatPlanRecord::where('contract_code',$notify['contract_code'])->Update(['contract_id' => $notify['contract_id']]);
|
|
|
}elseif ($notify['change_type']=='DELETE'){
|
|
|
+ @file_put_contents("quanju.txt", "-关闭签约\r\n", 8);
|
|
|
$cs=WechatPlanRecord::where('contract_code',$notify['contract_code'])->Update(['is_signing' => 1,'deletetime'=>time()]);
|
|
|
}
|
|
|
@file_put_contents("quanju.txt", $cs."-修改记录\r\n", 8);
|