wang hou sheng 8 months ago
parent 4863d28e9d
commit 6e295949a5
  1. 2
      app/api/controller/Wxserver.php
  2. 2
      app/common/library/wxserver/Server.php

@ -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);

Loading…
Cancel
Save