|
|
|
@ -15,11 +15,11 @@ class Wxserver extends BaseController |
|
|
|
|
|
|
|
|
|
public function index() |
|
|
|
|
{ |
|
|
|
|
// $appid = 'wx1814307a39775007'; |
|
|
|
|
// $obj = new \app\common\library\wxserver\Server(); |
|
|
|
|
// $arr = $obj->getPrivacySetting($appid); |
|
|
|
|
// $arr2 = $obj->setDomain($appid, $this->request->domain(true)); |
|
|
|
|
// return $this->renderSuccess(['arr' => $arr, 'arr2' => $arr2]); |
|
|
|
|
$appid = 'wx35f6c598106b9149'; |
|
|
|
|
$template_id = 6; |
|
|
|
|
$obj = new \app\common\library\wxserver\Server(); |
|
|
|
|
$arr = $obj->commit($appid, $template_id); |
|
|
|
|
return $this->renderSuccess(['arr' => $arr]); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|