|
@@ -3,16 +3,13 @@
|
|
|
namespace app\api\controller;
|
|
|
|
|
|
use app\common\controller\Api;
|
|
|
-use fast\Random;
|
|
|
-use \think\Log;
|
|
|
-use Redis;
|
|
|
-use app\common\library\Sms as Smslib;
|
|
|
+use think\Db;
|
|
|
/**
|
|
|
* 首页接口
|
|
|
*/
|
|
|
class Index extends Api
|
|
|
{
|
|
|
- protected $noNeedLogin = ['index','contactus','tcpTest','getAppShare','getWebsiteInfo','getUserCharmRankList','getPartyHotList','searchUsers','getInviteCode','getEdition','getInviteImg','getWebsiteInfoForMini','getBankList','getSwitch','getBootAnimation'];
|
|
|
+ protected $noNeedLogin = ['index'];
|
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
public function index(){
|
|
@@ -20,6 +17,23 @@ class Index extends Api
|
|
|
exit;
|
|
|
}
|
|
|
|
|
|
+ //好评有礼
|
|
|
+ public function app_comment(){
|
|
|
+ $images = input('images','');
|
|
|
+ $platform = input('platform','android');
|
|
|
+
|
|
|
+ $data = [
|
|
|
+ 'user_id' => $this->auth->id,
|
|
|
+ 'images' => $images,
|
|
|
+ 'status' => 0,
|
|
|
+ 'platform' => $platform,
|
|
|
+ 'createtime' => time(),
|
|
|
+ 'updatetime' => time(),
|
|
|
+ ];
|
|
|
+
|
|
|
+ Db::name('app_comment')->insertGetId($data);
|
|
|
+ $this->success();
|
|
|
+ }
|
|
|
|
|
|
|
|
|
/**
|