wang hou sheng 8 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);
$result = $this->curlPost($url, json_encode($data));
$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'])) {
$model = new WxserverAccount();
$up['audit_status'] = 1;
@ -660,6 +661,7 @@ class Server
$model->update($up, ['appid' => $appid]);
return true;
}
}
return false;
}

Loading…
Cancel
Save