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