diff --git a/app_spec.yml b/app_spec.yml index d7b094a..cec0598 100644 --- a/app_spec.yml +++ b/app_spec.yml @@ -2,17 +2,17 @@ things: name: things value_type: str - description: 所求之事 + description: '' pray: name: pray value_type: str - description: 祈祷 + description: '' output: ret1: name: ret1 value_type: str - description: 本卦 + description: '' ret2: name: ret2 value_type: str - description: 变卦 + description: '' diff --git a/handler.py b/handler.py index 6ad6f19..7696a24 100644 --- a/handler.py +++ b/handler.py @@ -8,7 +8,9 @@ 参数请放到params字典中,我们会自动解析该变量。 """ - param1 = conf['param1'] # value_type: str # description: some description + wish = conf['things'] # value_type: str # description: some description + pray = conf['pray'] + # add your code - return {'ret1': 'cat'} + return {'ret1': 'cat', 'ret2': 'dog'} diff --git a/main.ipynb b/main.ipynb index 8e06e5c..d49b1ca 100644 --- a/main.ipynb +++ b/main.ipynb @@ -1,5 +1,16 @@ { "cells": [ + { + "cell_type": "code", + "execution_count": null, + "metadata": { + "inputHidden": false + }, + "outputs": [], + "source": [ + "import y1" + ] + }, { "cell_type": "code", "execution_count": 1, @@ -23,15 +34,6 @@ " return {'ret1': 'cat'}\n", " " ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": { - "inputHidden": false - }, - "outputs": [], - "source": [] } ], "metadata": { diff --git a/yi.py b/yi.py index d1ce124..2a27686 100644 --- a/yi.py +++ b/yi.py @@ -160,6 +160,10 @@ print(f"说明:{turn_symbol_desc}\n" f"主预言:{main_indicate}\n" f"辅预言:{support_indicate}") + + def predict(self, wish: str, pray: str): + today = datetime.datetime.now().__format__("%Y%m%d") + time_seed_str = wish + pray + today if __name__ == "__main__": obj = YiProgram()