Mike 8 gadi atpakaļ
vecāks
revīzija
ae478fad2d

+ 2 - 1
server/app/Http/Controllers/Api/V1/MyController.php

xqd xqd
@@ -784,7 +784,7 @@ class MyController extends Controller
             ]
         );
         if($validator->fails()) return $this->validatorError($validator->messages()->all(),ErrorCode::CLIENT_WRONG_PARAMS);
-        \Log::info($user);
+        \Log::debug($user);
         $data2 = $user->myCareNum;
         $care_num = count($data2);
         $setting = BaseSettingsModel::where('category','paihang')->first();
@@ -792,6 +792,7 @@ class MyController extends Controller
         $b = $setting?$setting->value:1;
         $t = 21*3600 / 60;
         $data = $request->except('_token','pics');
+        \Log::debug(' care_num:'.$care_num.' a:'.$a.' b:'.$b.' t:'.$t);
         $data['score'] = (log($care_num) + ($a/$t) + $b)*100000000 ;
         $data['created_at'] = date('Y-m-d H:i:s');
         $data['updated_at'] = date('Y-m-d H:i:s');

+ 2 - 2
server/database/migrations/2017_06_15_082636_add_column_videos_to_dream_info_table.php → server/database/migrations/2017_06_15_082636_add_column_video_to_dream_info_table.php

xqd xqd
@@ -4,7 +4,7 @@ use Illuminate\Support\Facades\Schema;
 use Illuminate\Database\Schema\Blueprint;
 use Illuminate\Database\Migrations\Migration;
 
-class AddColumnVideosToDreamInfoTable extends Migration
+class AddColumnVideoToDreamInfoTable extends Migration
 {
     /**
      * Run the migrations.
@@ -14,7 +14,7 @@ class AddColumnVideosToDreamInfoTable extends Migration
     public function up()
     {
         Schema::table('dream_info', function (Blueprint $table) {
-            $table->string('videos')->comment('梦想视频地址')->default('')->after('about');
+            $table->string('video')->comment('梦想视频地址')->default('')->after('about');
         });
     }