wupengfei 2 years ago
parent
commit
2cf7173f05
3 changed files with 4 additions and 3 deletions
  1. 2 1
      .idea/workspace.xml
  2. 1 1
      application/api/common.php
  3. 1 1
      application/common/model/UserMessage.php

+ 2 - 1
.idea/workspace.xml

@@ -3,6 +3,7 @@
   <component name="ChangeListManager">
     <list default="true" id="1a36929e-c054-4875-a943-593a74e55fa4" name="Default Changelist" comment="">
       <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/application/api/common.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/api/common.php" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/application/common/model/UserMessage.php" beforeDir="false" afterPath="$PROJECT_DIR$/application/common/model/UserMessage.php" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -245,7 +246,7 @@
       <workItem from="1677545294116" duration="25527000" />
       <workItem from="1677631459930" duration="23725000" />
       <workItem from="1677718149453" duration="25714000" />
-      <workItem from="1677805207495" duration="4890000" />
+      <workItem from="1677805207495" duration="4958000" />
     </task>
     <servers />
   </component>

+ 1 - 1
application/api/common.php

@@ -1,11 +1,11 @@
 <?php
 // 接口公共方法
-use app\common\model\UserMessage;
 use think\Db;
 use JPush\Client;
 require_once env('root_path').'vendor/jpush/jpush/autoload.php';
 
 function Jpush($user_id = 0,$alert = '',$module='',$type='',$rel_id=''){
+    var_dump(111);
     $appKey = '02a7faefd91c8a6a446a6a14';
     $masterSecret = 'ba2e100db997024d9b6e5d35';
     $client = new Client($appKey, $masterSecret,null);

+ 1 - 1
application/common/model/UserMessage.php

@@ -80,7 +80,7 @@ class UserMessage extends Model
             'module'=>$module,
             'title'=>static::$type_desc[$module][$type]['title'],
         ];
-        var_dump($message);
+        //var_dump($message);
         $from_name = User::where('id',$from_user)->value('name');
        /* switch ($module) {
             case 'video':