初始化代码
This commit is contained in:
20
application/api/controller/Suggest.php
Normal file
20
application/api/controller/Suggest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace app\api\controller;
|
||||
|
||||
use think\Controller;
|
||||
|
||||
class Suggest extends Common
|
||||
{
|
||||
//用户反馈
|
||||
public function create_suggest()
|
||||
{
|
||||
$key_name = "api:suggest:create_suggest:" . $this->uid;
|
||||
redis_lock_exit($key_name);
|
||||
$image = input('image', 0);
|
||||
$content = input('content', 0);
|
||||
$reslut = model('Suggest')->create_suggest($this->uid, $image, $content);
|
||||
redis_unlock($key_name);
|
||||
return ajaxReturn($reslut['code'], $reslut['msg'], $reslut['data']);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user