|
|
@ -654,10 +654,8 @@ class Server |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$data = json_encode($data); |
|
|
|
$data = json_encode($data); |
|
|
|
} |
|
|
|
} |
|
|
|
Db::table('yoshop_wx_server')->insertGetId(['content' => $data, 'created_at' => date('Y-m-d H:i:s')]); |
|
|
|
|
|
|
|
$result = $this->curlPost($url, $data); |
|
|
|
$result = $this->curlPost($url, $data); |
|
|
|
$result = json_decode($result, true); |
|
|
|
$result = json_decode($result, true); |
|
|
|
Db::table('yoshop_wx_server')->insertGetId(['content' => json_encode($result), 'created_at' => date('Y-m-d H:i:s')]); |
|
|
|
|
|
|
|
if (!empty($result) && intval($result['errcode']) == 0 && !empty($result['auditid'])) { |
|
|
|
if (!empty($result) && intval($result['errcode']) == 0 && !empty($result['auditid'])) { |
|
|
|
$model = new WxserverAccount(); |
|
|
|
$model = new WxserverAccount(); |
|
|
|
$up['audit_status'] = 1; |
|
|
|
$up['audit_status'] = 1; |
|
|
|