gq 8 年之前
父节点
当前提交
834bae4913

+ 4 - 0
miaomiao/ionic.project

xqd
@@ -0,0 +1,4 @@
+{
+  "name": "miaomiao",
+  "app_id": ""
+}

+ 1 - 0
miaomiao/www/.idea/.name

xqd
@@ -0,0 +1 @@
+www

+ 6 - 0
miaomiao/www/.idea/encodings.xml

xqd
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="Encoding">
+    <file url="PROJECT" charset="UTF-8" />
+  </component>
+</project>

+ 13 - 0
miaomiao/www/.idea/misc.xml

xqd
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
+    <OptionsSetting value="true" id="Add" />
+    <OptionsSetting value="true" id="Remove" />
+    <OptionsSetting value="true" id="Checkout" />
+    <OptionsSetting value="true" id="Update" />
+    <OptionsSetting value="true" id="Status" />
+    <OptionsSetting value="true" id="Edit" />
+    <ConfirmationsSetting value="0" id="Add" />
+    <ConfirmationsSetting value="0" id="Remove" />
+  </component>
+</project>

+ 8 - 0
miaomiao/www/.idea/modules.xml

xqd
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ProjectModuleManager">
+    <modules>
+      <module fileurl="file://$PROJECT_DIR$/.idea/www.iml" filepath="$PROJECT_DIR$/.idea/www.iml" />
+    </modules>
+  </component>
+</project>

+ 228 - 0
miaomiao/www/.idea/workspace.xml

xqd
@@ -0,0 +1,228 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="ChangeListManager">
+    <list default="true" id="c3867151-2190-46c0-8b28-5c1524023ce8" name="Default" comment="" />
+    <ignored path="www.iws" />
+    <ignored path=".idea/workspace.xml" />
+    <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
+    <option name="TRACKING_ENABLED" value="true" />
+    <option name="SHOW_DIALOG" value="false" />
+    <option name="HIGHLIGHT_CONFLICTS" value="true" />
+    <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
+    <option name="LAST_RESOLUTION" value="IGNORE" />
+  </component>
+  <component name="ChangesViewManager" flattened_view="true" show_ignored="false" />
+  <component name="CreatePatchCommitExecutor">
+    <option name="PATCH_PATH" value="" />
+  </component>
+  <component name="ExecutionTargetManager" SELECTED_TARGET="default_target" />
+  <component name="FavoritesManager">
+    <favorites_list name="www" />
+  </component>
+  <component name="FileEditorManager">
+    <leaf>
+      <file leaf-file-name="index.html" pinned="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/templates/home/index.html">
+          <provider selected="true" editor-type-id="text-editor">
+            <state vertical-scroll-proportion="-6.928571">
+              <caret line="36" column="51" selection-start-line="36" selection-start-column="51" selection-end-line="36" selection-end-column="77" />
+              <folding>
+                <element signature="n#style#0;n#div#0;n#div#1;n#ion-content#0;n#ion-view#0;n#!!top" expanded="true" />
+                <element signature="n#style#0;n#i#0;n#div#0;n#div#1;n#ion-content#0;n#ion-view#0;n#!!top" expanded="true" />
+                <element signature="n#style#0;n#i#1;n#div#0;n#div#1;n#ion-content#0;n#ion-view#0;n#!!top" expanded="true" />
+              </folding>
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file leaf-file-name="style.css" pinned="false" current-in-tab="true">
+        <entry file="file://$PROJECT_DIR$/css/style.css">
+          <provider selected="true" editor-type-id="text-editor">
+            <state vertical-scroll-proportion="0.08">
+              <caret line="121" column="21" selection-start-line="121" selection-start-column="21" selection-end-line="121" selection-end-column="21" />
+              <folding />
+            </state>
+          </provider>
+        </entry>
+      </file>
+    </leaf>
+  </component>
+  <component name="IdeDocumentHistory">
+    <option name="CHANGED_PATHS">
+      <list>
+        <option value="$PROJECT_DIR$/templates/home/search.html" />
+        <option value="$PROJECT_DIR$/templates/home/index.html" />
+        <option value="$PROJECT_DIR$/css/style.css" />
+      </list>
+    </option>
+  </component>
+  <component name="JsBuildToolGruntFileManager" detection-done="true" />
+  <component name="JsBuildToolPackageJson" detection-done="true" />
+  <component name="JsGulpfileManager">
+    <detection-done>true</detection-done>
+  </component>
+  <component name="ProjectFrameBounds">
+    <option name="x" value="583" />
+    <option name="y" value="8" />
+    <option name="width" value="793" />
+    <option name="height" value="744" />
+  </component>
+  <component name="ProjectLevelVcsManager" settingsEditedManually="false">
+    <OptionsSetting value="true" id="Add" />
+    <OptionsSetting value="true" id="Remove" />
+    <OptionsSetting value="true" id="Checkout" />
+    <OptionsSetting value="true" id="Update" />
+    <OptionsSetting value="true" id="Status" />
+    <OptionsSetting value="true" id="Edit" />
+    <ConfirmationsSetting value="0" id="Add" />
+    <ConfirmationsSetting value="0" id="Remove" />
+  </component>
+  <component name="ProjectView">
+    <navigator currentView="ProjectPane" proportions="" version="1">
+      <flattenPackages />
+      <showMembers />
+      <showModules />
+      <showLibraryContents />
+      <hideEmptyPackages />
+      <abbreviatePackageNames />
+      <autoscrollToSource />
+      <autoscrollFromSource />
+      <sortByType />
+      <manualOrder />
+      <foldersAlwaysOnTop value="true" />
+    </navigator>
+    <panes>
+      <pane id="Scratches" />
+      <pane id="Scope" />
+      <pane id="ProjectPane">
+        <subPane>
+          <PATH>
+            <PATH_ELEMENT>
+              <option name="myItemId" value="www" />
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+            </PATH_ELEMENT>
+          </PATH>
+          <PATH>
+            <PATH_ELEMENT>
+              <option name="myItemId" value="www" />
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+            </PATH_ELEMENT>
+            <PATH_ELEMENT>
+              <option name="myItemId" value="www" />
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+            </PATH_ELEMENT>
+          </PATH>
+          <PATH>
+            <PATH_ELEMENT>
+              <option name="myItemId" value="www" />
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+            </PATH_ELEMENT>
+            <PATH_ELEMENT>
+              <option name="myItemId" value="www" />
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+            </PATH_ELEMENT>
+            <PATH_ELEMENT>
+              <option name="myItemId" value="templates" />
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+            </PATH_ELEMENT>
+          </PATH>
+          <PATH>
+            <PATH_ELEMENT>
+              <option name="myItemId" value="www" />
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+            </PATH_ELEMENT>
+            <PATH_ELEMENT>
+              <option name="myItemId" value="www" />
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+            </PATH_ELEMENT>
+            <PATH_ELEMENT>
+              <option name="myItemId" value="templates" />
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+            </PATH_ELEMENT>
+            <PATH_ELEMENT>
+              <option name="myItemId" value="home" />
+              <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+            </PATH_ELEMENT>
+          </PATH>
+        </subPane>
+      </pane>
+    </panes>
+  </component>
+  <component name="PropertiesComponent">
+    <property name="last_opened_file_path" value="$PROJECT_DIR$" />
+    <property name="WebServerToolWindowFactoryState" value="false" />
+    <property name="HbShouldOpenHtmlAsHb" value="" />
+  </component>
+  <component name="ShelveChangesManager" show_recycled="false" />
+  <component name="TaskManager">
+    <task active="true" id="Default" summary="Default task">
+      <changelist id="c3867151-2190-46c0-8b28-5c1524023ce8" name="Default" comment="" />
+      <created>1497407805819</created>
+      <option name="number" value="Default" />
+      <updated>1497407805819</updated>
+    </task>
+    <servers />
+  </component>
+  <component name="ToolWindowManager">
+    <frame x="583" y="8" width="793" height="744" extended-state="0" />
+    <editor active="true" />
+    <layout>
+      <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="0" side_tool="false" content_ui="combo" />
+      <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="6" side_tool="false" content_ui="tabs" />
+      <window_info id="Event Log" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
+      <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
+      <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
+      <window_info id="Terminal" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="false" content_ui="tabs" />
+      <window_info id="Favorites" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="-1" side_tool="true" content_ui="tabs" />
+      <window_info id="Cvs" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="4" side_tool="false" content_ui="tabs" />
+      <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="2" side_tool="false" content_ui="combo" />
+      <window_info id="Message" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
+      <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="0" side_tool="false" content_ui="tabs" />
+      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
+      <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="5" side_tool="false" content_ui="tabs" />
+      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.33" sideWeight="0.5" order="2" side_tool="false" content_ui="tabs" />
+      <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.25" sideWeight="0.5" order="1" side_tool="false" content_ui="tabs" />
+      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" show_stripe_button="true" weight="0.4" sideWeight="0.5" order="3" side_tool="false" content_ui="tabs" />
+    </layout>
+  </component>
+  <component name="VcsContentAnnotationSettings">
+    <option name="myLimit" value="2678400000" />
+  </component>
+  <component name="XDebuggerManager">
+    <breakpoint-manager />
+    <watches-manager />
+  </component>
+  <component name="editorHistoryManager">
+    <entry file="file://$PROJECT_DIR$/templates/home/search.html">
+      <provider selected="true" editor-type-id="text-editor">
+        <state vertical-scroll-proportion="-7.464286">
+          <caret line="11" column="42" selection-start-line="11" selection-start-column="42" selection-end-line="11" selection-end-column="42" />
+          <folding>
+            <element signature="n#style#0;n#input#0;n#label#0;n#ion-nav-buttons#0;n#ion-view#0;n#!!top" expanded="true" />
+            <element signature="n#style#0;n#button#0;n#ion-nav-buttons#0;n#ion-view#0;n#!!top" expanded="true" />
+          </folding>
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/templates/home/index.html">
+      <provider selected="true" editor-type-id="text-editor">
+        <state vertical-scroll-proportion="-6.928571">
+          <caret line="36" column="51" selection-start-line="36" selection-start-column="51" selection-end-line="36" selection-end-column="77" />
+          <folding>
+            <element signature="n#style#0;n#div#0;n#div#1;n#ion-content#0;n#ion-view#0;n#!!top" expanded="true" />
+            <element signature="n#style#0;n#i#0;n#div#0;n#div#1;n#ion-content#0;n#ion-view#0;n#!!top" expanded="true" />
+            <element signature="n#style#0;n#i#1;n#div#0;n#div#1;n#ion-content#0;n#ion-view#0;n#!!top" expanded="true" />
+          </folding>
+        </state>
+      </provider>
+    </entry>
+    <entry file="file://$PROJECT_DIR$/css/style.css">
+      <provider selected="true" editor-type-id="text-editor">
+        <state vertical-scroll-proportion="0.08">
+          <caret line="121" column="21" selection-start-line="121" selection-start-column="21" selection-end-line="121" selection-end-column="21" />
+          <folding />
+        </state>
+      </provider>
+    </entry>
+  </component>
+</project>

+ 8 - 0
miaomiao/www/.idea/www.iml

xqd
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<module type="WEB_MODULE" version="4">
+  <component name="NewModuleRootManager">
+    <content url="file://$MODULE_DIR$" />
+    <orderEntry type="inheritedJdk" />
+    <orderEntry type="sourceFolder" forTests="false" />
+  </component>
+</module>

+ 7 - 3
miaomiao/www/css/style.css

xqd xqd xqd
@@ -118,8 +118,8 @@ overflow:auto;
     border-bottom:5px solid #FBF2F5;
 }
 .subcontent img{
-    max-width:60px;
-    border-radius:30px;
+    max-width:17%;
+    border-radius:50%;
 }
     .subcontent i {
         font-size: 1.5rem;
@@ -133,6 +133,10 @@ overflow:auto;
         .subcontent i:last-child {
             right: 10px;
         }
+.item-image img, .item-image .list-img {
+    width: 100%;
+    vertical-align: middle;
+}
 .mainitem {
     padding:0;
 }
@@ -282,7 +286,7 @@ padding-right:3px;
         display: block;
         position: relative;
         background:#FE4B82; 
-        height: 20px; /* ¸ß¶È */
+        height: 20px; /* �߶� */
         line-height: 20px;
     }
 .reply-sx {

+ 1 - 1
miaomiao/www/index.html

xqd
@@ -9,7 +9,7 @@
     <link href="css/style.css" rel="stylesheet">
     <script src="js/platformOverrides.js"></script>
     <script src="lib/ionic/js/ionic.bundle.min.js"></script>
- 
+
     <script src="cordova.js"></script>
     
     <script src="js/app.js"></script>

+ 6 - 0
miaomiao/www/js/config/config.js

xqd
@@ -0,0 +1,6 @@
+(function (app) {
+    //全局配置 
+    app.constant("config", {
+         server: 'http://localhost/' 
+    });
+})(angular.module('app'));

+ 10 - 7
miaomiao/www/templates/add/index.html

xqd xqd
@@ -21,12 +21,16 @@
                 <i class="icon ion-plus"></i>
                 添加梦想介绍</a>
             </div>
-            <div class="item">上传一张照片,让别人更好的了解你</div>
+            <div class="item">上传图片和视频,让别人更好的了解你</div>
             <div class="item itemjs">
                 <a ng-repeat="item in files" ng-click="showImages(item)" class="img-file-up">
                     <b style="background-image:url({{item}});"><em ng-click="deletePicture(item)" class="ion-ios-close-outline"></em></b>
                 </a>
                 <a class="btn-file-up" ng-click="addfile()"><i class="ion-image"></i>添加图片</a>
+                <a ng-repeat="item in files" ng-click="showImages(item)" class="img-file-up">
+                    <b style="background-image:url({{item}});"><em ng-click="deletePicture(item)" class="ion-ios-close-outline"></em></b>
+                </a>
+                <a class="btn-file-up" ng-click="addfile()"><i class="icon ion-cash"></i>添加视频</a>
             </div>
             <div class="item">实现梦想所需要的人民币</div>
             <div class="item item-input-inset itemjs">
@@ -50,14 +54,13 @@
                 <button class="button button-clear" ng-click="closeModal()">确定</button>
             </ion-header-bar>
             <ion-content>
-                <div class="addmodal">
+                <div class="addmodal" style="border-bottom: 2px solid #EEEEEE">
                     <textarea placeholder="请输入梦想介绍"></textarea>
                 </div>
-                <div class="addfoot">
-                    <img ng-src="img/图片.png" />
-                    <img ng-src="img/相机.png" />
-                    <img ng-src="img/表情.png" />
-                </div>
+                <a ng-repeat="item in files" ng-click="showImages(item)" class="img-file-up">
+                    <b style="background-image:url({{item}});"><em ng-click="deletePicture(item)" class="ion-ios-close-outline"></em></b>
+                </a>
+                <a class="btn-file-up" ng-click="addfile()"><i class="ion-image"></i>添加图片</a>
             </ion-content>
         
         </ion-modal-view>

+ 4 - 4
miaomiao/www/templates/home/index.html

xqd
@@ -33,16 +33,16 @@
                     <div class="box banner"><img ng-src="img/demo/banner3.jpg" /></div>  
                 </ion-slide-page>
             </ion-slides>
-            <div class="subcontent">
-                <i class="icon ion-ios-arrow-left"></i>
-                <span style="padding:15px">
+            <div class="item item-image" style="margin: 20px 0; border: none;">
+                <i class="icon ion-ios-arrow-left" style="font-size: 1.5rem;"></i>
+                <span class="subcontent">
                     <img ng-src="img/demo/head1.jpg" />
                     <img ng-src="img/demo/head2.jpg" />
                     <img ng-src="img/demo/head3.jpg" />
                     <img ng-src="img/demo/head4.jpg" />
                     <img ng-src="img/demo/head5.jpg" />
                 </span>
-                <i class="icon ion-ios-arrow-right"></i>
+                <i class="icon ion-ios-arrow-right" style="font-size: 1.5rem"></i>
             </div>
             <div class="list">
                 <div class="item mainitem" ng-click="todetail()">

+ 2 - 2
miaomiao/www/templates/home/search.html

xqd
@@ -2,9 +2,9 @@
     <ion-nav-buttons side="primary">
         <label class="item item-input" style="width:315px">
             <i class="icon ion-search placeholder-icon"></i>
-            <input type="text" placeholder="搜索内容" ng-change="keychange()" ng-model="vm.keywords">
+            <input type="text" style="width: 100%" placeholder="搜索内容" ng-change="keychange()" ng-model="vm.keywords">
         </label>
-        <button class="button button-calm" style="padding-left:10px" ng-click="$ionicGoBack()">取消</button>
+        <button class="button button-calm" style="width: 30%; padding: 0;" ng-click="$ionicGoBack()">取消</button>
     </ion-nav-buttons>
      <ion-content>
          <div ng-if="vm.keywords.length==0&&ismore==false">

+ 1 - 6
server/.gitignore

xqd
@@ -10,10 +10,5 @@ Homestead.yaml
 .phpstorm.meta.php
 _ide_helper*
 *.lock
-bootstrap/cache
-storage/logs
-storage/app
-storage/framework/cache
-storage/framework/views
-storage/framework/sessions
+
 public/upload

+ 1 - 1
server/apidoc.json

xqd
@@ -2,6 +2,6 @@
   "name": "MiaoMiao",
   "version": "0.1.0",
   "description": "喵喵App API接口文档",
-  "title": "MiaoMiao",
+  "title": "喵喵App API接口文档",
   "url" : "http://q8.9026.com"
 }

+ 0 - 123
server/app/Http/Controllers/Api/V1/AuthController.php

xqd
@@ -206,129 +206,6 @@ class AuthController extends Controller
         return $this->api(['verify_code' => $verify_code]);
     }
 
-//    /**
-//     * @api {post} /api/auth/register 注册(register)
-//     * @apiDescription 注册(register)
-//     * @apiGroup Auth
-//     * @apiPermission none
-//     * @apiVersion 0.1.0
-//     * @apiParam {String}   phone               手机号码
-//     * @apiParam {String}   verify_code          手机验证码
-//     * @apiParam {int}      type                帐户类型:1.个人,2.商户
-//     * @apiParam {String}   [name=手机号码]      用户帐号名称
-//     * @apiParam {String}   [email]             邮件地址
-//     * @apiParam {String}   [password=123456]   密码
-//     * @apiParam {File}     [avatar]            用户头像
-//     * @apiSuccessExample {json} Success-Response:
-//     * HTTP/1.1 200 OK
-//     * {
-//     *     "state": true,
-//     *     "code": 0,
-//     *     "message": "",
-//     *     "data": {
-//     *         "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6IjdjYWUyYzFmYTUwMTIyZDI0ZTRiYTZhZGZhNmQxYmZlOWNiMzIxMTBmYWJlZjNjYzIyNmViZjRmNGExNWM3NjllNmU2ZTNiYWE5OGNhOWUzIn0.eyJhdWQiOiIxIiwianRpIjoiN2NhZTJjMWZhNTAxMjJkMjRlNGJhNmFkZmE2ZDFiZmU5Y2IzMjExMGZhYmVmM2NjMjI2ZWJmNGY0YTE1Yzc2OWU2ZTZlM2JhYTk4Y2E5ZTMiLCJpYXQiOjE0NzU0MTE1NTgsIm5iZiI6MTQ3NTQxMTU1OCwiZXhwIjo0NjMxMDg1MTU4LCJzdWIiOiIxIiwic2NvcGVzIjpbXX0.E9YGEzuRUOk02aV1EiWLJ_pD0hKoCyW0k_sGy63hM3u5X8K_HI1kVhaU6JNLqLZeszIAroTEDB8XMgZKAqTLlwtL8PLCJcuDoxfk1BRHbfjhDheTsahBysKGalvNEpzRCrGlao0mS0Cg9qDpEsndtypPFS8sfaflToOzbJjiSK2DvQiHSH8xZI3zHJTezgZMz-pB_hPTxp8ajdv0ve1gWtWjs3vERr0Y91X4hngO8X7LuXtAYtfxGZRIye12YE7TuLBMYzj8CCfiRt7Smhyf4palNW5mzKlZpa2l87n6NQ14Iy4oMzQ2PON1j_swrosuE2yZohGOn6fDdSCBRdJ6dLD_emjBdQCQOoB63R7BbhFZgvFX25TjzFJ7r9AdVMiGmebuRKEVSZV_JCGu1C71OIbQk-UK35s00gSr2fmJGBbN2cZTXBRTJpfuMZ_ihFYEZrvVq_Ih2X0xkd36JUuxaUld1BXRgPZvH-9jBuhe0YW2OOlgwpdm6ZB8BMcuS4ftLoi6FipgzFqfIuy-0ZqPMDnJaG7Gycrdpxza00mgOFxYxJtqwZNsUWFRZEVU881l6VC_cy294YXSPQxUwEoyKg-G5Pm8AEB9bqv5z4EU4B8-XTd3zKNqtNba_snHbc711i4EytCiZfYSjNB1hwenq45YYOAhPTwOpFI0kxyRazc",
-//     *         "user": {
-//     *             "type": "2",
-//     *             "phone": "15881082737",
-//     *             "name": "15881082737",
-//     *             "updated_at": "2016-10-03 20:52:21",
-//     *             "created_at": "2016-10-03 20:52:21",
-//     *             "id": 6
-//     *         }
-//     *     }
-//     * }
-//     * @apiErrorExample {json} Error-Response:
-//     * HTTP/1.1 400 Bad Request
-//     * {
-//     *     "state": false,
-//     *     "code": 1000,
-//     *     "message": "传入参数不正确",
-//     *     "data": null or []
-//     * }
-//     * 可能出现的错误代码:
-//     *    200     SAVE_USER_FAILED                保存用户数据失败
-//     *    1000    CLIENT_WRONG_PARAMS             传入参数不正确
-//     *    1101    INCORRECT_VERIFY_CODE           输入验证码错误
-//     */
-//    public function register(Request $request) {
-//        $validator = Validator::make($request->input(),
-//            [
-//                'phone'         => 'required|regex:/^1[34578]\d{9}$/',
-//                'verify_code'    => 'required',
-//                'name'          => 'alpha_dash|between:2,50',
-//                'email'         => 'email',
-//                'password'      => 'between:6,16',
-//                'avatar'        => 'image',
-//            ],
-//            [
-//                'phone.required'        => '手机号码必填',
-//                'phone.regex'           => '手机号码格式不正确',
-//                'verify_code.required'   => '请输入校验码',
-//                'name.alpha_dash'       => '用户名称只能字母数字中下划线',
-//                'name.between'          => '用户名称只能为2~50字符',
-//                'email.email'           => '邮件格式不正确',
-//                'password.between'      => '密码必须在6~16字符之内',
-//                'avatar.image'          => '用户头像必须为有效的图片',
-//            ]
-//        );
-//
-//        if ($validator->fails()) {
-//            return $this->error($validator->messages()->all(),ErrorCode::CLIENT_WRONG_PARAMS, '');
-//        }
-//
-//        $phone = $request->get('phone');
-//        $type = $request->get('type');
-//        $verify_code = $request->get('verify_code');
-//        $name = $request->get('name');
-//
-//        //先绑定会员 ,后绑定商户
-////        if (User::where('phone', '=', $phone)->where('type', '=', $type)->exists()) {
-////            return $this->error(ErrorCode::PHONE_NUMBER_ALREADY_REGISTERED);
-////        }
-//
-//        $email = $request->get('email');
-//        $password = $request->get('password');
-//        //如果有头像,上传
-//        if ($request->hasFile('avatar')) {
-//            $md5 = $this->uploadAttachment($request, 'avatar', 'avatar');
-//        }
-//
-//        $key = $this->keySmsCode . $phone;
-////        if (Redis::exists($key)) {
-//        if (Cache::store('file')->has($key)) {
-////            $code = Redis::get($key);
-//            $code = Cache::store('file')->get($key);
-//            if ($code == $verify_code) {
-//                if(!$user = User::where('phone', '=', $phone)->first()){
-//                    $user = new User();
-//                }
-//                $user->type = $type;
-//                $user->phone = $phone;
-//                $user->name = $name;
-//                $user->email = $email;
-//                if (!empty($password)) {
-//                    $user->password = bcrypt($password);
-//                }
-//                if (isset($md5) && is_string($md5) && !empty($md5)) {
-//                    $user->avatar = $md5;
-//                }
-//                if ($user->save()) {
-////                    Redis::del($key);
-//                    Cache::store('file')->forget($key);
-//
-//                    //发token
-//                    $token = $user->createToken($phone . '-' . $type);
-//                    return $this->api([
-//                        'token'     => $token->accessToken,
-//                        'user'      => $user->toArray(),
-//                    ]);
-//                } else {
-//                    return $this->error(ErrorCode::SAVE_USER_FAILED);
-//                }
-//            }
-//        }
-//        return $this->error(ErrorCode::INCORRECT_VERIFY_CODE);
-//    }
 
     public function refreshToken() {
         $token = '';//TODO

+ 0 - 1
server/readme.md

xqd
@@ -10,7 +10,6 @@
 - storage下所有目录 和 bootstrap/cache 目录应该是可写的
 - 键入 '域名/admin/login'(后台登录)
 
-
 - 生成文档 apidoc -i app/Http/Controllers/Api/V1 -o public/apidoc
 - api文档在public/apidoc里面, 也可以看上面的 `在线api文档`