@ -18,7 +18,7 @@ class Wxserver extends BaseController
$appid = 'wx74c7a92ae5ffbcb6';
$template_id = 6;
$obj = new \app\common\library\wxserver\Server();
$arr = $obj->commit($appid, $template_id);
$arr = $obj->getQrcode($appid);
return $this->renderSuccess(['arr' => $arr]);
}
@ -229,8 +229,6 @@ class Server
$url = 'https://api.weixin.qq.com/wxa/commit?access_token=' . $access_token;
$result = $this->curlPost($url, json_encode($data));
$result = json_decode($result, true);
dump($result);
exit();
if ($result && !empty($result['errmsg']) && $result['errmsg'] == 'ok') {
//体验码
$qr_code = $this->getQrcode($appid);