|
@@ -15,6 +15,19 @@ class Question extends Api
|
|
protected $noNeedLogin = [];
|
|
protected $noNeedLogin = [];
|
|
protected $noNeedRight = ['*'];
|
|
protected $noNeedRight = ['*'];
|
|
|
|
|
|
|
|
+ //取题之前弹机构
|
|
|
|
+ public function get_question_before(){
|
|
|
|
+
|
|
|
|
+ $jigou = Db::name('vote_jigou')->where('id',$this->auth->bind_jigou_id)->value('title');
|
|
|
|
+ $times = config('site.bind_jigou_times') - $this->auth->bind_jigou_times;
|
|
|
|
+
|
|
|
|
+ $rs = [
|
|
|
|
+ 'bind_jigou_id' => $this->auth->bind_jigou_id,
|
|
|
|
+ 'jigou_title' => $jigou,
|
|
|
|
+ 'times' => $times,
|
|
|
|
+ ];
|
|
|
|
+ $this->success(1,$rs);
|
|
|
|
+ }
|
|
|
|
|
|
//获取10个题
|
|
//获取10个题
|
|
public function get_question(){
|
|
public function get_question(){
|