wang hou sheng 10 months ago
parent a6dd1ae474
commit f61441bcba
  1. 2
      app/common/library/wxserver/Server.php

@ -651,6 +651,7 @@ class Server
$data['item_list'] = $this->getAllCategory($appid); $data['item_list'] = $this->getAllCategory($appid);
$result = $this->curlPost($url, json_encode($data)); $result = $this->curlPost($url, json_encode($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;
@ -660,6 +661,7 @@ class Server
$model->update($up, ['appid' => $appid]); $model->update($up, ['appid' => $appid]);
return true; return true;
} }
} }
return false; return false;
} }

Loading…
Cancel
Save