name = $smartPushMsgPrams['name']; $smartPushMsg->category_type = $smartPushMsgPrams['category_type']; $smartPushMsg->content = $smartPushMsgPrams['content']; $smartPushMsg->sex = $smartPushMsgPrams['sex']; $smartPushMsg->description = $smartPushMsgPrams['description']; $smartPushMsg->book_name = $smartPushMsgPrams['book_name']; $smartPushMsg->chapter_name = $smartPushMsgPrams['chapter_name']; $smartPushMsg->distribution_channel_id = $smartPushMsgPrams['distribution_channel_id']; $smartPushMsg->status = $smartPushMsgPrams['status']; \Log::info('after_updateSmartPushMsg:'); \Log::info($smartPushMsg); $smartPushMsg->save(); return 1; }else{ \Log::info('updateSmartPushMsg_not_exist'); return 2; } } catch (\Exception $e) { \Log::info("updateSmartPushMsg_ept:".$e); return 0; } } }