消息推送增加邮箱&&增加终版保存功能
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
namespace app\controller;
|
||||
|
||||
use app\common\service\SysDictService;
|
||||
use app\common\service\UploadService;
|
||||
use app\common\utils\scaffold\Generate;
|
||||
use support\Request;
|
||||
@@ -100,7 +101,7 @@ class IndexController
|
||||
{
|
||||
|
||||
|
||||
// $flowType = 'stock_order_flow';
|
||||
// $flowType = 'stock_orders';
|
||||
// $bizType = 'stock_orders';
|
||||
// $bizId = 32;
|
||||
// $formData = [];
|
||||
@@ -133,7 +134,30 @@ class IndexController
|
||||
// $result = $service->createdPdfFile($param['id']);
|
||||
// return json($result);
|
||||
|
||||
\Webman\RedisQueue\Redis::send('stock-order-pdf', ['id'=>82]);
|
||||
// \Webman\RedisQueue\Redis::send('stock-order-pdf', ['id'=>82]);
|
||||
|
||||
|
||||
// $approvalType = array_flip(\app\common\service\SysDictService::pluckKeyValueByCode('approval_type')->toArray());
|
||||
// $result = $approvalType['stock_orders'];
|
||||
// var_dump($result);
|
||||
|
||||
|
||||
// $list = \app\common\model\User::where('status', 1)->where('email', '!=', '')->pluck('email')->toArray();
|
||||
|
||||
// var_dump($list);
|
||||
|
||||
$approvalType = array_flip(\app\common\service\SysDictService::pluckKeyValueByCode('approval_type')->toArray());
|
||||
|
||||
$title = "【审批】备货单:BH20250911001";
|
||||
$flowType = $approvalType['stock_orders'];
|
||||
$content = "【审批】你有一条审批 待审批:类型 {$flowType},业务单号 BH20250911001";
|
||||
|
||||
noticePush([
|
||||
'title' => $title,
|
||||
'content' => $content,
|
||||
'recipient' => [1],
|
||||
'email' => 1
|
||||
]);
|
||||
} catch (\Throwable $th) {
|
||||
//throw $th;
|
||||
var_dump($th->getMessage().$th->getLine().$th->getFile());
|
||||
|
||||
Reference in New Issue
Block a user