作者 xwp
1 个管道 的构建 通过 耗费 9 秒

课程管理添加推送相关逻辑

... ... @@ -22,7 +22,7 @@
<div class="form-group">
<label class="control-label col-xs-12 col-sm-2">{:__('Address')}:</label>
<div class="col-xs-12 col-sm-8">
<input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text">
<input id="c-address" data-rule="required" class="form-control" name="row[address]" type="text" placeholder="超过10个汉字,用户可能无法收到推送消息">
</div>
</div>
<div class="form-group" style="display: none">
... ...
... ... @@ -576,7 +576,7 @@ class Course extends Api
"name3" => ["value" => $k['user']['nickname']],
"thing5" => ["value" => "课程预约成功"],*/
"thing2" => ["value" => $courseStore['store']['address']],
"thing2" => ["value" => mb_substr($courseStore['store']['address'], 0, 10)],
"thing3" => ["value" => $courseStore['course']['name']],
"time4" => ["value" => $k['CourseStore']['start']],
],
... ... @@ -681,7 +681,7 @@ class Course extends Api
'page'=>'pages/classReserve/classReserve',
'data'=>[
"thing2" => ["value" => $k['course']['name']],
"thing4" => ["value" => $k['store']['address']],
"thing4" => ["value" => mb_substr($k['store']['address'], 0, 10)],
"date1" => ["value" => $v['CourseStore']['start']],
"name3" => ["value" => $v['user']['nickname']],
"thing5" => ["value" => "课程即将开始"],
... ...