|
|
@@ -11,6 +11,29 @@ use Exception;
|
|
|
|
|
|
class Issue extends BaseController
|
|
|
{
|
|
|
+
|
|
|
+ /**
|
|
|
+ * @api {get} /issue/yuanTou 源头
|
|
|
+ * @apiGroup Issue
|
|
|
+ * @apiVersion 1.0.0
|
|
|
+ * @apiSuccess {int} code
|
|
|
+ * @apiSuccess {int} timestamp
|
|
|
+ * @apiSuccess {String} msg
|
|
|
+ * @apiSuccess {Object[]} data
|
|
|
+ */
|
|
|
+ function yuanTou()
|
|
|
+ {
|
|
|
+ $data = file_get_contents("https://pc28ya.com/index.php?action=getMyOpensJson");
|
|
|
+ $data = json_decode($data,true);
|
|
|
+ $data = array_reverse($data['data']);
|
|
|
+ foreach ($data as &$item){
|
|
|
+ $item['keno'] = explode(',',$item['keno']);
|
|
|
+ sort($item['keno']);
|
|
|
+ }
|
|
|
+ return $this->success($data);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
/**
|
|
|
* @api {get} /issue/history 天机
|
|
|
* @apiGroup Issue
|
|
|
@@ -18,6 +41,29 @@ class Issue extends BaseController
|
|
|
*
|
|
|
* @apiParam {String} [date] 日期 默认当天
|
|
|
* - 格式:yyyy-mm-dd
|
|
|
+ *
|
|
|
+ * @apiSuccess {int} code
|
|
|
+ * @apiSuccess {int} timestamp
|
|
|
+ * @apiSuccess {String} msg
|
|
|
+ * @apiSuccess {Object[]} data
|
|
|
+ * @apiSuccess {String} data.date
|
|
|
+ * @apiSuccess {int} data.total 总数
|
|
|
+ * @apiSuccess {int} data.big 大
|
|
|
+ * @apiSuccess {int} data.small 小
|
|
|
+ * @apiSuccess {int} data.odd 单
|
|
|
+ * @apiSuccess {int} data.even 双
|
|
|
+ * @apiSuccess {int} data.big_odd 大单
|
|
|
+ * @apiSuccess {int} data.big_even 大双
|
|
|
+ * @apiSuccess {int} data.small_odd 小单
|
|
|
+ * @apiSuccess {int} data.small_even 小双
|
|
|
+ * @apiSuccess {int} data.max 极大
|
|
|
+ * @apiSuccess {int} data.min 极小
|
|
|
+ * @apiSuccess {int} data.pair 对子
|
|
|
+ * @apiSuccess {int} data.sequence 顺子
|
|
|
+ * @apiSuccess {int} data.leopard 豹子
|
|
|
+ * @apiSuccess {int} data.num_0 00号
|
|
|
+ * @apiSuccess {int} data.num_1 01号
|
|
|
+ *
|
|
|
*/
|
|
|
function history()
|
|
|
{
|