|
|
@@ -477,7 +477,7 @@ class Model_notice extends Lin_Model
|
|
|
'name'=>$shop['shopname']
|
|
|
]
|
|
|
],JSON_UNESCAPED_UNICODE),
|
|
|
- 'err_desc'=>json_encode($res,JSON_UNESCAPED_UNICODE),
|
|
|
+ 'err_desc'=>json_encode($f,JSON_UNESCAPED_UNICODE),
|
|
|
'create_time'=>time()
|
|
|
]);
|
|
|
$this->logic_ding->sendJobs("tiktok_znx",[
|
|
|
@@ -490,23 +490,26 @@ class Model_notice extends Lin_Model
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- $this->sdzxlist->insert([
|
|
|
- 'type'=>1,
|
|
|
- 'status'=>0,
|
|
|
- 'shop'=>$shop['id'],
|
|
|
- 'number'=>$list['orderinfo'],
|
|
|
- 'cont'=>json_encode([
|
|
|
- 'post'=>$post,
|
|
|
- 'queryParams'=>$queryParams,
|
|
|
- 'content'=>$notice['content'],
|
|
|
- 'shop'=>[
|
|
|
- 'id'=>$shop['id'],
|
|
|
- 'name'=>$shop['shopname']
|
|
|
- ]
|
|
|
- ],JSON_UNESCAPED_UNICODE),
|
|
|
- 'err_desc'=>json_encode($res,JSON_UNESCAPED_UNICODE),
|
|
|
- 'create_time'=>time()
|
|
|
- ]);
|
|
|
+ if($res['code'] != '105005'){
|
|
|
+ $this->sdzxlist->insert([
|
|
|
+ 'type'=>1,
|
|
|
+ 'status'=>0,
|
|
|
+ 'shop'=>$shop['id'],
|
|
|
+ 'number'=>$list['orderinfo'],
|
|
|
+ 'cont'=>json_encode([
|
|
|
+ 'post'=>$post,
|
|
|
+ 'queryParams'=>$queryParams,
|
|
|
+ 'content'=>$notice['content'],
|
|
|
+ 'shop'=>[
|
|
|
+ 'id'=>$shop['id'],
|
|
|
+ 'name'=>$shop['shopname']
|
|
|
+ ]
|
|
|
+ ],JSON_UNESCAPED_UNICODE),
|
|
|
+ 'err_desc'=>json_encode($res,JSON_UNESCAPED_UNICODE),
|
|
|
+ 'create_time'=>time()
|
|
|
+ ]);
|
|
|
+ }
|
|
|
+
|
|
|
$this->logic_ding->sendJobs("tiktok_znx",[
|
|
|
'info'=>$list,
|
|
|
'content'=>$notice,
|