patien
parent
c04f2fd005
commit
ce366a026b
|
|
@ -10,12 +10,13 @@ use Slowlyo\OwlAdmin\Controllers\AdminController;
|
||||||
use Slowlyo\OwlAdmin\Renderers\Form;
|
use Slowlyo\OwlAdmin\Renderers\Form;
|
||||||
use Slowlyo\OwlAdmin\Renderers\Page;
|
use Slowlyo\OwlAdmin\Renderers\Page;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 字典管理
|
||||||
|
*/
|
||||||
class KeywordsController extends AdminController
|
class KeywordsController extends AdminController
|
||||||
{
|
{
|
||||||
protected string $serviceName = KeywordService::class;
|
protected string $serviceName = KeywordService::class;
|
||||||
|
|
||||||
protected string $pageTitle = '字典管理';
|
|
||||||
|
|
||||||
public function list(): Page
|
public function list(): Page
|
||||||
{
|
{
|
||||||
$crud = $this->baseCRUD()
|
$crud = $this->baseCRUD()
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ Route::group([
|
||||||
$router->get('menus', [\App\Admin\Controllers\HomeController::class, 'menus']);
|
$router->get('menus', [\App\Admin\Controllers\HomeController::class, 'menus']);
|
||||||
$router->get('current-user', [\App\Admin\Controllers\AuthController::class, 'currentUser']);
|
$router->get('current-user', [\App\Admin\Controllers\AuthController::class, 'currentUser']);
|
||||||
$router->post('login', [\App\Admin\Controllers\AuthController::class, 'login']);
|
$router->post('login', [\App\Admin\Controllers\AuthController::class, 'login']);
|
||||||
|
|
||||||
$router->get('login', [App\Admin\Controllers\AuthController::class, 'loginPage']);
|
$router->get('login', [App\Admin\Controllers\AuthController::class, 'loginPage']);
|
||||||
|
|
||||||
$router->any('upload_file', [\App\Admin\Controllers\HomeController::class, 'uploadFile']);
|
$router->any('upload_file', [\App\Admin\Controllers\HomeController::class, 'uploadFile']);
|
||||||
|
|
|
||||||
|
|
@ -52,15 +52,18 @@ class PatientRecordNotify extends Command
|
||||||
if ($user) {
|
if ($user) {
|
||||||
$response = $api->postJson('/cgi-bin/message/template/send', [
|
$response = $api->postJson('/cgi-bin/message/template/send', [
|
||||||
'touser' => $user->openid,
|
'touser' => $user->openid,
|
||||||
'template_id' => 'zdkOoIk7bfyzpW9Tuu-pxmrVkSviFvpp1yjXBUT8nEY',
|
'template_id' => 'zdkOoIk7bfyzpW9Tuu-pxqh2no-93FCcqstFKLOTfu0',
|
||||||
'url' => url('/h5/pages/record/detail?id=' . $item->id),
|
'url' => url('/h5/pages/record/detail?id=' . $item->id),
|
||||||
'data' => [
|
'data' => [
|
||||||
'thing1' => [
|
'thing1' => [
|
||||||
'value' => data_get($item->patient, 'name') .'-'. data_get($item->patient, 'phone')
|
'value' => data_get($item->patient, 'name')
|
||||||
],
|
],
|
||||||
'time3' => [
|
'time3' => [
|
||||||
'value' => $item->next_treat_at->format('Y年m月d日 H:i:s')
|
'value' => $item->next_treat_at->format('Y年m月d日 H:i:s')
|
||||||
],
|
],
|
||||||
|
'phone_number6' => [
|
||||||
|
'value' => data_get($item->patient, 'phone')
|
||||||
|
]
|
||||||
]
|
]
|
||||||
]);
|
]);
|
||||||
if ($response->isFailed()) {
|
if ($response->isFailed()) {
|
||||||
|
|
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.8 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 5.4 KiB |
Loading…
Reference in New Issue