From 6ca2a964599f5674ebc5a87ebd81202de2c90fbb Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Sun, 1 May 2016 11:33:50 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E7=B4=80=E9=8C=84=E6=8E=A8=E8=96=A6?= =?UTF-8?q?=E5=AD=B8=E7=BF=92=E9=BB=9E=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/api/v2/index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/htdocs/api/v2/index.php b/htdocs/api/v2/index.php index e8f52ca..839aed2 100644 --- a/htdocs/api/v2/index.php +++ b/htdocs/api/v2/index.php @@ -1403,10 +1403,12 @@ $app->group('/tokens', 'APIrequest', function () use ($app, $app_template) { // 製作 $output_targets = array(); + $output_target_ids = array(); for($i=0; $i<$result_recommand_total; $i++) { $target_id = $recommandResult[$i]['nextPoint']; $isEntity = $recommandResult[$i]['isEntity']; array_push($output_targets, output_the_target_array($target_id, $isEntity, $materialMode)); + array_push($output_target_ids, $target_id); // TODO: 標的進出資料多增加行進中、確實進入的欄位 if($maxItemTotal == 1) { @@ -1415,6 +1417,9 @@ $app->group('/tokens', 'APIrequest', function () use ($app, $app_template) { } + // 紀錄所有推薦進歷程 + $recommand->insertRecommandHistory($saId, $output_target_ids); + // 噴出結果 $app->render(201,array( 'token' => $token,