This repository has been archived on 2024-07-11. You can view files and clone it, but cannot push or open issues or pull requests.
yoshop/source/application/api/controller/wxapp/Formid.php

36 lines
838 B
PHP
Raw Normal View History

2020-04-25 22:20:29 +08:00
<?php
namespace app\api\controller\wxapp;
use app\api\controller\Controller;
use app\api\model\wxapp\Formid as FormidModel;
/**
* form_id 管理
* Class Formid
* @package app\api\controller\wxapp
*/
class Formid extends Controller
{
/**
* 新增form_id
2020-04-25 22:34:57 +08:00
* (因微信模板消息已下线所以formId取消不再收集)
2020-04-25 22:20:29 +08:00
* @param $formId
* @return array
* @throws \app\common\exception\BaseException
* @throws \think\exception\DbException
*/
public function save($formId)
{
2020-04-25 22:34:57 +08:00
return $this->renderSuccess();
// if (!$user = $this->getUser(false)) {
// return $this->renderSuccess();
// }
// if (FormidModel::add($user['user_id'], $formId)) {
// return $this->renderSuccess();
// }
// return $this->renderError();
2020-04-25 22:20:29 +08:00
}
}